From a5723e1a5282083580d4b5ea15b5233fca8daa00 Mon Sep 17 00:00:00 2001 From: YunShu Date: Sat, 22 Jul 2023 21:10:14 +0800 Subject: [PATCH] ci: add crowdin configuration file and i18n files (#595) * ci: add crowdin configuration file and i18n files * fix: update i18n regex --- .github/workflows/sync.yml | 32 +++---- i18n/generate.go | 2 +- i18n/generate_test.go | 21 +++-- web/crowdin.yml | 10 +++ web/src/locales/de/data.json | 159 +++++++++++++++++++++++++++++++++++ web/src/locales/en/data.json | 83 +++++++++++++++--- web/src/locales/es/data.json | 159 +++++++++++++++++++++++++++++++++++ web/src/locales/fr/data.json | 159 +++++++++++++++++++++++++++++++++++ web/src/locales/id/data.json | 159 +++++++++++++++++++++++++++++++++++ web/src/locales/ja/data.json | 159 +++++++++++++++++++++++++++++++++++ web/src/locales/ko/data.json | 159 +++++++++++++++++++++++++++++++++++ web/src/locales/ru/data.json | 159 +++++++++++++++++++++++++++++++++++ web/src/locales/zh/data.json | 87 ++++++++++++++++--- 13 files changed, 1300 insertions(+), 48 deletions(-) create mode 100644 web/crowdin.yml create mode 100644 web/src/locales/de/data.json create mode 100644 web/src/locales/es/data.json create mode 100644 web/src/locales/fr/data.json create mode 100644 web/src/locales/id/data.json create mode 100644 web/src/locales/ja/data.json create mode 100644 web/src/locales/ko/data.json create mode 100644 web/src/locales/ru/data.json diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index ef6d94f..368e87a 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -34,23 +34,23 @@ jobs: CROWDIN_PROJECT_ID: '603051' CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} - - name: crowdin backend action - uses: crowdin/github-action@1.4.8 - with: - upload_translations: true + # - name: crowdin backend action + # uses: crowdin/github-action@1.4.8 + # with: + # upload_translations: true - download_translations: true - push_translations: true - commit_message: 'refactor: New Crowdin Backend translations by Github Action' + # download_translations: true + # push_translations: true + # commit_message: 'refactor: New Crowdin Backend translations by Github Action' - localization_branch_name: l10n_crowdin_action - create_pull_request: true - pull_request_title: 'refactor: New Crowdin Backend translations' + # localization_branch_name: l10n_crowdin_action + # create_pull_request: true + # pull_request_title: 'refactor: New Crowdin Backend translations' - crowdin_branch_name: l10n_branch - config: './crowdin.yml' + # crowdin_branch_name: l10n_branch + # config: './crowdin.yml' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - CROWDIN_PROJECT_ID: '603051' - CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # CROWDIN_PROJECT_ID: '603051' + # CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} diff --git a/i18n/generate.go b/i18n/generate.go index 4c1cc04..c6d91c6 100644 --- a/i18n/generate.go +++ b/i18n/generate.go @@ -29,7 +29,7 @@ type I18nData map[string]map[string]string var reI18n *regexp.Regexp func init() { - reI18n, _ = regexp.Compile("i18next.t\\(\"(.*)\"\\)") + reI18n, _ = regexp.Compile("i18next.t\\(\"(.*?)\"\\)") } func getAllI18nStrings(fileContent string) []string { diff --git a/i18n/generate_test.go b/i18n/generate_test.go index ad453bf..2fea80b 100644 --- a/i18n/generate_test.go +++ b/i18n/generate_test.go @@ -16,13 +16,24 @@ package i18n import "testing" +func applyToOtherLanguage(dataEn *I18nData, lang string) { + dataOther := readI18nFile(lang) + println(dataOther) + + applyData(dataEn, dataOther) + writeI18nFile(lang, dataEn) +} + func TestGenerateI18nStrings(t *testing.T) { dataEn := parseToData() writeI18nFile("en", dataEn) - dataZh := readI18nFile("zh") - println(dataZh) - - applyData(dataEn, dataZh) - writeI18nFile("zh", dataEn) + applyToOtherLanguage(dataEn, "zh") + applyToOtherLanguage(dataEn, "fr") + applyToOtherLanguage(dataEn, "de") + applyToOtherLanguage(dataEn, "id") + applyToOtherLanguage(dataEn, "ja") + applyToOtherLanguage(dataEn, "ko") + applyToOtherLanguage(dataEn, "ru") + applyToOtherLanguage(dataEn, "es") } diff --git a/web/crowdin.yml b/web/crowdin.yml new file mode 100644 index 0000000..b219bc2 --- /dev/null +++ b/web/crowdin.yml @@ -0,0 +1,10 @@ +project_id: '603051' +api_token_env: 'CROWDIN_PERSONAL_TOKEN' +preserve_hierarchy: true +files: [ + # JSON translation files + { + source: '/src/locales/en/data.json', + translation: '/src/locales/%two_letters_code%/data.json', + }, + ] \ No newline at end of file diff --git a/web/src/locales/de/data.json b/web/src/locales/de/data.json new file mode 100644 index 0000000..6fe6499 --- /dev/null +++ b/web/src/locales/de/data.json @@ -0,0 +1,159 @@ +{ + "account": { + "Chats \u0026 Messages": "Chats \u0026 Messages", + "My Account": "My Account", + "Sign In": "Sign In", + "Sign Out": "Sign Out", + "Sign Up": "Sign Up" + }, + "chat": { + "AI": "AI", + "Category": "Category", + "Chats": "Chats", + "Edit Chat": "Edit Chat", + "Group": "Group", + "Message count": "Message count", + "Single": "Single", + "Type": "Type", + "User1": "User1", + "User2": "User2", + "Users": "Users" + }, + "factorset": { + "Count": "Count", + "Dimension": "Dimension", + "Edit Factorset": "Edit Factorset", + "Example factors": "Example factors", + "File name": "File name", + "File size": "File size" + }, + "general": { + "Action": "Action", + "Add": "Add", + "Back Home": "Back Home", + "Cancel": "Cancel", + "Chats": "Chats", + "Close": "Close", + "Clustering": "Clustering", + "Created time": "Created time", + "Data": "Data", + "Delete": "Delete", + "Display name": "Display name", + "Download": "Download", + "Edit": "Edit", + "Factorsets": "Factorsets", + "Failed to add": "Failed to add", + "Failed to connect to server": "Failed to connect to server", + "Failed to delete": "Failed to delete", + "Failed to get answer": "Failed to get answer", + "Home": "Home", + "Loading...": "Loading...", + "Logs": "Logs", + "Menu": "Menu", + "Messages": "Messages", + "Name": "Name", + "No.": "No.", + "OK": "OK", + "Organization": "Organization", + "Organization - Tooltip": "Organization - Tooltip", + "Permissions": "Permissions", + "Preview": "Preview", + "Provider URL": "Provider URL", + "Providers": "Providers", + "Result": "Result", + "Save": "Save", + "Sorry, you do not have permission to access this page or logged in status invalid.": "Sorry, you do not have permission to access this page or logged in status invalid.", + "Stores": "Stores", + "Successfully added": "Successfully added", + "Successfully deleted": "Successfully deleted", + "URL": "URL", + "Updated time": "Updated time", + "Users": "Users", + "Vectors": "Vectors", + "Videos": "Videos", + "View": "View", + "Wordsets": "Wordsets" + }, + "login": { + "Loading": "Loading" + }, + "message": { + "Author": "Author", + "Chat": "Chat", + "Edit Chat": "Edit Chat", + "Messages": "Messages", + "Reply to": "Reply to", + "Text": "Text", + "replyTo": "replyTo" + }, + "provider": { + "Category": "Category", + "Edit Provider": "Edit Provider", + "Provider URL": "Provider URL", + "Secret key": "Secret key", + "Type": "Type" + }, + "store": { + "Add Permission": "Add Permission", + "Apply for Permission": "Apply for Permission", + "Biology": "Biology", + "Bucket": "Bucket", + "Category": "Category", + "Chemistry": "Chemistry", + "Chinese": "Chinese", + "Collected time": "Collected time", + "Delete": "Delete", + "Domain": "Domain", + "Download": "Download", + "Edit Store": "Edit Store", + "English": "English", + "File": "File", + "File tree": "File tree", + "File type": "File type", + "Folder": "Folder", + "History": "History", + "Math": "Math", + "Move": "Move", + "New folder": "New folder", + "Other": "Other", + "Path": "Path", + "Physics": "Physics", + "Please choose the type of your data": "Please choose the type of your data", + "Please input your search term": "Please input your search term", + "Rename": "Rename", + "Science": "Science", + "Sorry, you are unauthorized to access this file or folder": "Sorry, you are unauthorized to access this file or folder", + "Subject": "Subject", + "Upload file": "Upload file", + "files and": "files and", + "folders are checked": "folders are checked" + }, + "vector": { + "Data": "Data", + "Edit Vector": "Edit Vector", + "File": "File", + "Store": "Store", + "Text": "Text" + }, + "video": { + "Cover": "Cover", + "Current time (second)": "Current time (second)", + "Edit Video": "Edit Video", + "End time (s)": "End time (s)", + "Label count": "Label count", + "Labels": "Labels", + "Start time (s)": "Start time (s)", + "Tag on pause": "Tag on pause", + "Text": "Text", + "Video": "Video", + "Video ID": "Video ID" + }, + "wordset": { + "Distance limit": "Distance limit", + "Edit Wordset": "Edit Wordset", + "Factorset": "Factorset", + "Match": "Match", + "Matched": "Matched", + "Words": "Words" + } +} \ No newline at end of file diff --git a/web/src/locales/en/data.json b/web/src/locales/en/data.json index f5f6bc3..6fe6499 100644 --- a/web/src/locales/en/data.json +++ b/web/src/locales/en/data.json @@ -1,13 +1,39 @@ { "account": { + "Chats \u0026 Messages": "Chats \u0026 Messages", "My Account": "My Account", "Sign In": "Sign In", "Sign Out": "Sign Out", "Sign Up": "Sign Up" }, + "chat": { + "AI": "AI", + "Category": "Category", + "Chats": "Chats", + "Edit Chat": "Edit Chat", + "Group": "Group", + "Message count": "Message count", + "Single": "Single", + "Type": "Type", + "User1": "User1", + "User2": "User2", + "Users": "Users" + }, + "factorset": { + "Count": "Count", + "Dimension": "Dimension", + "Edit Factorset": "Edit Factorset", + "Example factors": "Example factors", + "File name": "File name", + "File size": "File size" + }, "general": { "Action": "Action", "Add": "Add", + "Back Home": "Back Home", + "Cancel": "Cancel", + "Chats": "Chats", + "Close": "Close", "Clustering": "Clustering", "Created time": "Created time", "Data": "Data", @@ -15,22 +41,58 @@ "Display name": "Display name", "Download": "Download", "Edit": "Edit", + "Factorsets": "Factorsets", + "Failed to add": "Failed to add", + "Failed to connect to server": "Failed to connect to server", + "Failed to delete": "Failed to delete", + "Failed to get answer": "Failed to get answer", "Home": "Home", "Loading...": "Loading...", + "Logs": "Logs", + "Menu": "Menu", + "Messages": "Messages", "Name": "Name", "No.": "No.", + "OK": "OK", + "Organization": "Organization", + "Organization - Tooltip": "Organization - Tooltip", "Permissions": "Permissions", "Preview": "Preview", - "Logs": "Logs", + "Provider URL": "Provider URL", + "Providers": "Providers", "Result": "Result", "Save": "Save", + "Sorry, you do not have permission to access this page or logged in status invalid.": "Sorry, you do not have permission to access this page or logged in status invalid.", "Stores": "Stores", + "Successfully added": "Successfully added", + "Successfully deleted": "Successfully deleted", "URL": "URL", - "Factorsets": "Factorsets", + "Updated time": "Updated time", + "Users": "Users", + "Vectors": "Vectors", "Videos": "Videos", "View": "View", "Wordsets": "Wordsets" }, + "login": { + "Loading": "Loading" + }, + "message": { + "Author": "Author", + "Chat": "Chat", + "Edit Chat": "Edit Chat", + "Messages": "Messages", + "Reply to": "Reply to", + "Text": "Text", + "replyTo": "replyTo" + }, + "provider": { + "Category": "Category", + "Edit Provider": "Edit Provider", + "Provider URL": "Provider URL", + "Secret key": "Secret key", + "Type": "Type" + }, "store": { "Add Permission": "Add Permission", "Apply for Permission": "Apply for Permission", @@ -66,13 +128,12 @@ "files and": "files and", "folders are checked": "folders are checked" }, - "factorset": { - "Count": "Count", - "Dimension": "Dimension", - "Edit Factorset": "Edit Factorset", - "Example factors": "Example factors", - "File name": "File name", - "File size": "File size" + "vector": { + "Data": "Data", + "Edit Vector": "Edit Vector", + "File": "File", + "Store": "Store", + "Text": "Text" }, "video": { "Cover": "Cover", @@ -88,13 +149,11 @@ "Video ID": "Video ID" }, "wordset": { - "All words": "All words", "Distance limit": "Distance limit", "Edit Wordset": "Edit Wordset", + "Factorset": "Factorset", "Match": "Match", "Matched": "Matched", - "Valid words": "Valid words", - "Factorset": "Factorset", "Words": "Words" } } \ No newline at end of file diff --git a/web/src/locales/es/data.json b/web/src/locales/es/data.json new file mode 100644 index 0000000..6fe6499 --- /dev/null +++ b/web/src/locales/es/data.json @@ -0,0 +1,159 @@ +{ + "account": { + "Chats \u0026 Messages": "Chats \u0026 Messages", + "My Account": "My Account", + "Sign In": "Sign In", + "Sign Out": "Sign Out", + "Sign Up": "Sign Up" + }, + "chat": { + "AI": "AI", + "Category": "Category", + "Chats": "Chats", + "Edit Chat": "Edit Chat", + "Group": "Group", + "Message count": "Message count", + "Single": "Single", + "Type": "Type", + "User1": "User1", + "User2": "User2", + "Users": "Users" + }, + "factorset": { + "Count": "Count", + "Dimension": "Dimension", + "Edit Factorset": "Edit Factorset", + "Example factors": "Example factors", + "File name": "File name", + "File size": "File size" + }, + "general": { + "Action": "Action", + "Add": "Add", + "Back Home": "Back Home", + "Cancel": "Cancel", + "Chats": "Chats", + "Close": "Close", + "Clustering": "Clustering", + "Created time": "Created time", + "Data": "Data", + "Delete": "Delete", + "Display name": "Display name", + "Download": "Download", + "Edit": "Edit", + "Factorsets": "Factorsets", + "Failed to add": "Failed to add", + "Failed to connect to server": "Failed to connect to server", + "Failed to delete": "Failed to delete", + "Failed to get answer": "Failed to get answer", + "Home": "Home", + "Loading...": "Loading...", + "Logs": "Logs", + "Menu": "Menu", + "Messages": "Messages", + "Name": "Name", + "No.": "No.", + "OK": "OK", + "Organization": "Organization", + "Organization - Tooltip": "Organization - Tooltip", + "Permissions": "Permissions", + "Preview": "Preview", + "Provider URL": "Provider URL", + "Providers": "Providers", + "Result": "Result", + "Save": "Save", + "Sorry, you do not have permission to access this page or logged in status invalid.": "Sorry, you do not have permission to access this page or logged in status invalid.", + "Stores": "Stores", + "Successfully added": "Successfully added", + "Successfully deleted": "Successfully deleted", + "URL": "URL", + "Updated time": "Updated time", + "Users": "Users", + "Vectors": "Vectors", + "Videos": "Videos", + "View": "View", + "Wordsets": "Wordsets" + }, + "login": { + "Loading": "Loading" + }, + "message": { + "Author": "Author", + "Chat": "Chat", + "Edit Chat": "Edit Chat", + "Messages": "Messages", + "Reply to": "Reply to", + "Text": "Text", + "replyTo": "replyTo" + }, + "provider": { + "Category": "Category", + "Edit Provider": "Edit Provider", + "Provider URL": "Provider URL", + "Secret key": "Secret key", + "Type": "Type" + }, + "store": { + "Add Permission": "Add Permission", + "Apply for Permission": "Apply for Permission", + "Biology": "Biology", + "Bucket": "Bucket", + "Category": "Category", + "Chemistry": "Chemistry", + "Chinese": "Chinese", + "Collected time": "Collected time", + "Delete": "Delete", + "Domain": "Domain", + "Download": "Download", + "Edit Store": "Edit Store", + "English": "English", + "File": "File", + "File tree": "File tree", + "File type": "File type", + "Folder": "Folder", + "History": "History", + "Math": "Math", + "Move": "Move", + "New folder": "New folder", + "Other": "Other", + "Path": "Path", + "Physics": "Physics", + "Please choose the type of your data": "Please choose the type of your data", + "Please input your search term": "Please input your search term", + "Rename": "Rename", + "Science": "Science", + "Sorry, you are unauthorized to access this file or folder": "Sorry, you are unauthorized to access this file or folder", + "Subject": "Subject", + "Upload file": "Upload file", + "files and": "files and", + "folders are checked": "folders are checked" + }, + "vector": { + "Data": "Data", + "Edit Vector": "Edit Vector", + "File": "File", + "Store": "Store", + "Text": "Text" + }, + "video": { + "Cover": "Cover", + "Current time (second)": "Current time (second)", + "Edit Video": "Edit Video", + "End time (s)": "End time (s)", + "Label count": "Label count", + "Labels": "Labels", + "Start time (s)": "Start time (s)", + "Tag on pause": "Tag on pause", + "Text": "Text", + "Video": "Video", + "Video ID": "Video ID" + }, + "wordset": { + "Distance limit": "Distance limit", + "Edit Wordset": "Edit Wordset", + "Factorset": "Factorset", + "Match": "Match", + "Matched": "Matched", + "Words": "Words" + } +} \ No newline at end of file diff --git a/web/src/locales/fr/data.json b/web/src/locales/fr/data.json new file mode 100644 index 0000000..6fe6499 --- /dev/null +++ b/web/src/locales/fr/data.json @@ -0,0 +1,159 @@ +{ + "account": { + "Chats \u0026 Messages": "Chats \u0026 Messages", + "My Account": "My Account", + "Sign In": "Sign In", + "Sign Out": "Sign Out", + "Sign Up": "Sign Up" + }, + "chat": { + "AI": "AI", + "Category": "Category", + "Chats": "Chats", + "Edit Chat": "Edit Chat", + "Group": "Group", + "Message count": "Message count", + "Single": "Single", + "Type": "Type", + "User1": "User1", + "User2": "User2", + "Users": "Users" + }, + "factorset": { + "Count": "Count", + "Dimension": "Dimension", + "Edit Factorset": "Edit Factorset", + "Example factors": "Example factors", + "File name": "File name", + "File size": "File size" + }, + "general": { + "Action": "Action", + "Add": "Add", + "Back Home": "Back Home", + "Cancel": "Cancel", + "Chats": "Chats", + "Close": "Close", + "Clustering": "Clustering", + "Created time": "Created time", + "Data": "Data", + "Delete": "Delete", + "Display name": "Display name", + "Download": "Download", + "Edit": "Edit", + "Factorsets": "Factorsets", + "Failed to add": "Failed to add", + "Failed to connect to server": "Failed to connect to server", + "Failed to delete": "Failed to delete", + "Failed to get answer": "Failed to get answer", + "Home": "Home", + "Loading...": "Loading...", + "Logs": "Logs", + "Menu": "Menu", + "Messages": "Messages", + "Name": "Name", + "No.": "No.", + "OK": "OK", + "Organization": "Organization", + "Organization - Tooltip": "Organization - Tooltip", + "Permissions": "Permissions", + "Preview": "Preview", + "Provider URL": "Provider URL", + "Providers": "Providers", + "Result": "Result", + "Save": "Save", + "Sorry, you do not have permission to access this page or logged in status invalid.": "Sorry, you do not have permission to access this page or logged in status invalid.", + "Stores": "Stores", + "Successfully added": "Successfully added", + "Successfully deleted": "Successfully deleted", + "URL": "URL", + "Updated time": "Updated time", + "Users": "Users", + "Vectors": "Vectors", + "Videos": "Videos", + "View": "View", + "Wordsets": "Wordsets" + }, + "login": { + "Loading": "Loading" + }, + "message": { + "Author": "Author", + "Chat": "Chat", + "Edit Chat": "Edit Chat", + "Messages": "Messages", + "Reply to": "Reply to", + "Text": "Text", + "replyTo": "replyTo" + }, + "provider": { + "Category": "Category", + "Edit Provider": "Edit Provider", + "Provider URL": "Provider URL", + "Secret key": "Secret key", + "Type": "Type" + }, + "store": { + "Add Permission": "Add Permission", + "Apply for Permission": "Apply for Permission", + "Biology": "Biology", + "Bucket": "Bucket", + "Category": "Category", + "Chemistry": "Chemistry", + "Chinese": "Chinese", + "Collected time": "Collected time", + "Delete": "Delete", + "Domain": "Domain", + "Download": "Download", + "Edit Store": "Edit Store", + "English": "English", + "File": "File", + "File tree": "File tree", + "File type": "File type", + "Folder": "Folder", + "History": "History", + "Math": "Math", + "Move": "Move", + "New folder": "New folder", + "Other": "Other", + "Path": "Path", + "Physics": "Physics", + "Please choose the type of your data": "Please choose the type of your data", + "Please input your search term": "Please input your search term", + "Rename": "Rename", + "Science": "Science", + "Sorry, you are unauthorized to access this file or folder": "Sorry, you are unauthorized to access this file or folder", + "Subject": "Subject", + "Upload file": "Upload file", + "files and": "files and", + "folders are checked": "folders are checked" + }, + "vector": { + "Data": "Data", + "Edit Vector": "Edit Vector", + "File": "File", + "Store": "Store", + "Text": "Text" + }, + "video": { + "Cover": "Cover", + "Current time (second)": "Current time (second)", + "Edit Video": "Edit Video", + "End time (s)": "End time (s)", + "Label count": "Label count", + "Labels": "Labels", + "Start time (s)": "Start time (s)", + "Tag on pause": "Tag on pause", + "Text": "Text", + "Video": "Video", + "Video ID": "Video ID" + }, + "wordset": { + "Distance limit": "Distance limit", + "Edit Wordset": "Edit Wordset", + "Factorset": "Factorset", + "Match": "Match", + "Matched": "Matched", + "Words": "Words" + } +} \ No newline at end of file diff --git a/web/src/locales/id/data.json b/web/src/locales/id/data.json new file mode 100644 index 0000000..6fe6499 --- /dev/null +++ b/web/src/locales/id/data.json @@ -0,0 +1,159 @@ +{ + "account": { + "Chats \u0026 Messages": "Chats \u0026 Messages", + "My Account": "My Account", + "Sign In": "Sign In", + "Sign Out": "Sign Out", + "Sign Up": "Sign Up" + }, + "chat": { + "AI": "AI", + "Category": "Category", + "Chats": "Chats", + "Edit Chat": "Edit Chat", + "Group": "Group", + "Message count": "Message count", + "Single": "Single", + "Type": "Type", + "User1": "User1", + "User2": "User2", + "Users": "Users" + }, + "factorset": { + "Count": "Count", + "Dimension": "Dimension", + "Edit Factorset": "Edit Factorset", + "Example factors": "Example factors", + "File name": "File name", + "File size": "File size" + }, + "general": { + "Action": "Action", + "Add": "Add", + "Back Home": "Back Home", + "Cancel": "Cancel", + "Chats": "Chats", + "Close": "Close", + "Clustering": "Clustering", + "Created time": "Created time", + "Data": "Data", + "Delete": "Delete", + "Display name": "Display name", + "Download": "Download", + "Edit": "Edit", + "Factorsets": "Factorsets", + "Failed to add": "Failed to add", + "Failed to connect to server": "Failed to connect to server", + "Failed to delete": "Failed to delete", + "Failed to get answer": "Failed to get answer", + "Home": "Home", + "Loading...": "Loading...", + "Logs": "Logs", + "Menu": "Menu", + "Messages": "Messages", + "Name": "Name", + "No.": "No.", + "OK": "OK", + "Organization": "Organization", + "Organization - Tooltip": "Organization - Tooltip", + "Permissions": "Permissions", + "Preview": "Preview", + "Provider URL": "Provider URL", + "Providers": "Providers", + "Result": "Result", + "Save": "Save", + "Sorry, you do not have permission to access this page or logged in status invalid.": "Sorry, you do not have permission to access this page or logged in status invalid.", + "Stores": "Stores", + "Successfully added": "Successfully added", + "Successfully deleted": "Successfully deleted", + "URL": "URL", + "Updated time": "Updated time", + "Users": "Users", + "Vectors": "Vectors", + "Videos": "Videos", + "View": "View", + "Wordsets": "Wordsets" + }, + "login": { + "Loading": "Loading" + }, + "message": { + "Author": "Author", + "Chat": "Chat", + "Edit Chat": "Edit Chat", + "Messages": "Messages", + "Reply to": "Reply to", + "Text": "Text", + "replyTo": "replyTo" + }, + "provider": { + "Category": "Category", + "Edit Provider": "Edit Provider", + "Provider URL": "Provider URL", + "Secret key": "Secret key", + "Type": "Type" + }, + "store": { + "Add Permission": "Add Permission", + "Apply for Permission": "Apply for Permission", + "Biology": "Biology", + "Bucket": "Bucket", + "Category": "Category", + "Chemistry": "Chemistry", + "Chinese": "Chinese", + "Collected time": "Collected time", + "Delete": "Delete", + "Domain": "Domain", + "Download": "Download", + "Edit Store": "Edit Store", + "English": "English", + "File": "File", + "File tree": "File tree", + "File type": "File type", + "Folder": "Folder", + "History": "History", + "Math": "Math", + "Move": "Move", + "New folder": "New folder", + "Other": "Other", + "Path": "Path", + "Physics": "Physics", + "Please choose the type of your data": "Please choose the type of your data", + "Please input your search term": "Please input your search term", + "Rename": "Rename", + "Science": "Science", + "Sorry, you are unauthorized to access this file or folder": "Sorry, you are unauthorized to access this file or folder", + "Subject": "Subject", + "Upload file": "Upload file", + "files and": "files and", + "folders are checked": "folders are checked" + }, + "vector": { + "Data": "Data", + "Edit Vector": "Edit Vector", + "File": "File", + "Store": "Store", + "Text": "Text" + }, + "video": { + "Cover": "Cover", + "Current time (second)": "Current time (second)", + "Edit Video": "Edit Video", + "End time (s)": "End time (s)", + "Label count": "Label count", + "Labels": "Labels", + "Start time (s)": "Start time (s)", + "Tag on pause": "Tag on pause", + "Text": "Text", + "Video": "Video", + "Video ID": "Video ID" + }, + "wordset": { + "Distance limit": "Distance limit", + "Edit Wordset": "Edit Wordset", + "Factorset": "Factorset", + "Match": "Match", + "Matched": "Matched", + "Words": "Words" + } +} \ No newline at end of file diff --git a/web/src/locales/ja/data.json b/web/src/locales/ja/data.json new file mode 100644 index 0000000..6fe6499 --- /dev/null +++ b/web/src/locales/ja/data.json @@ -0,0 +1,159 @@ +{ + "account": { + "Chats \u0026 Messages": "Chats \u0026 Messages", + "My Account": "My Account", + "Sign In": "Sign In", + "Sign Out": "Sign Out", + "Sign Up": "Sign Up" + }, + "chat": { + "AI": "AI", + "Category": "Category", + "Chats": "Chats", + "Edit Chat": "Edit Chat", + "Group": "Group", + "Message count": "Message count", + "Single": "Single", + "Type": "Type", + "User1": "User1", + "User2": "User2", + "Users": "Users" + }, + "factorset": { + "Count": "Count", + "Dimension": "Dimension", + "Edit Factorset": "Edit Factorset", + "Example factors": "Example factors", + "File name": "File name", + "File size": "File size" + }, + "general": { + "Action": "Action", + "Add": "Add", + "Back Home": "Back Home", + "Cancel": "Cancel", + "Chats": "Chats", + "Close": "Close", + "Clustering": "Clustering", + "Created time": "Created time", + "Data": "Data", + "Delete": "Delete", + "Display name": "Display name", + "Download": "Download", + "Edit": "Edit", + "Factorsets": "Factorsets", + "Failed to add": "Failed to add", + "Failed to connect to server": "Failed to connect to server", + "Failed to delete": "Failed to delete", + "Failed to get answer": "Failed to get answer", + "Home": "Home", + "Loading...": "Loading...", + "Logs": "Logs", + "Menu": "Menu", + "Messages": "Messages", + "Name": "Name", + "No.": "No.", + "OK": "OK", + "Organization": "Organization", + "Organization - Tooltip": "Organization - Tooltip", + "Permissions": "Permissions", + "Preview": "Preview", + "Provider URL": "Provider URL", + "Providers": "Providers", + "Result": "Result", + "Save": "Save", + "Sorry, you do not have permission to access this page or logged in status invalid.": "Sorry, you do not have permission to access this page or logged in status invalid.", + "Stores": "Stores", + "Successfully added": "Successfully added", + "Successfully deleted": "Successfully deleted", + "URL": "URL", + "Updated time": "Updated time", + "Users": "Users", + "Vectors": "Vectors", + "Videos": "Videos", + "View": "View", + "Wordsets": "Wordsets" + }, + "login": { + "Loading": "Loading" + }, + "message": { + "Author": "Author", + "Chat": "Chat", + "Edit Chat": "Edit Chat", + "Messages": "Messages", + "Reply to": "Reply to", + "Text": "Text", + "replyTo": "replyTo" + }, + "provider": { + "Category": "Category", + "Edit Provider": "Edit Provider", + "Provider URL": "Provider URL", + "Secret key": "Secret key", + "Type": "Type" + }, + "store": { + "Add Permission": "Add Permission", + "Apply for Permission": "Apply for Permission", + "Biology": "Biology", + "Bucket": "Bucket", + "Category": "Category", + "Chemistry": "Chemistry", + "Chinese": "Chinese", + "Collected time": "Collected time", + "Delete": "Delete", + "Domain": "Domain", + "Download": "Download", + "Edit Store": "Edit Store", + "English": "English", + "File": "File", + "File tree": "File tree", + "File type": "File type", + "Folder": "Folder", + "History": "History", + "Math": "Math", + "Move": "Move", + "New folder": "New folder", + "Other": "Other", + "Path": "Path", + "Physics": "Physics", + "Please choose the type of your data": "Please choose the type of your data", + "Please input your search term": "Please input your search term", + "Rename": "Rename", + "Science": "Science", + "Sorry, you are unauthorized to access this file or folder": "Sorry, you are unauthorized to access this file or folder", + "Subject": "Subject", + "Upload file": "Upload file", + "files and": "files and", + "folders are checked": "folders are checked" + }, + "vector": { + "Data": "Data", + "Edit Vector": "Edit Vector", + "File": "File", + "Store": "Store", + "Text": "Text" + }, + "video": { + "Cover": "Cover", + "Current time (second)": "Current time (second)", + "Edit Video": "Edit Video", + "End time (s)": "End time (s)", + "Label count": "Label count", + "Labels": "Labels", + "Start time (s)": "Start time (s)", + "Tag on pause": "Tag on pause", + "Text": "Text", + "Video": "Video", + "Video ID": "Video ID" + }, + "wordset": { + "Distance limit": "Distance limit", + "Edit Wordset": "Edit Wordset", + "Factorset": "Factorset", + "Match": "Match", + "Matched": "Matched", + "Words": "Words" + } +} \ No newline at end of file diff --git a/web/src/locales/ko/data.json b/web/src/locales/ko/data.json new file mode 100644 index 0000000..6fe6499 --- /dev/null +++ b/web/src/locales/ko/data.json @@ -0,0 +1,159 @@ +{ + "account": { + "Chats \u0026 Messages": "Chats \u0026 Messages", + "My Account": "My Account", + "Sign In": "Sign In", + "Sign Out": "Sign Out", + "Sign Up": "Sign Up" + }, + "chat": { + "AI": "AI", + "Category": "Category", + "Chats": "Chats", + "Edit Chat": "Edit Chat", + "Group": "Group", + "Message count": "Message count", + "Single": "Single", + "Type": "Type", + "User1": "User1", + "User2": "User2", + "Users": "Users" + }, + "factorset": { + "Count": "Count", + "Dimension": "Dimension", + "Edit Factorset": "Edit Factorset", + "Example factors": "Example factors", + "File name": "File name", + "File size": "File size" + }, + "general": { + "Action": "Action", + "Add": "Add", + "Back Home": "Back Home", + "Cancel": "Cancel", + "Chats": "Chats", + "Close": "Close", + "Clustering": "Clustering", + "Created time": "Created time", + "Data": "Data", + "Delete": "Delete", + "Display name": "Display name", + "Download": "Download", + "Edit": "Edit", + "Factorsets": "Factorsets", + "Failed to add": "Failed to add", + "Failed to connect to server": "Failed to connect to server", + "Failed to delete": "Failed to delete", + "Failed to get answer": "Failed to get answer", + "Home": "Home", + "Loading...": "Loading...", + "Logs": "Logs", + "Menu": "Menu", + "Messages": "Messages", + "Name": "Name", + "No.": "No.", + "OK": "OK", + "Organization": "Organization", + "Organization - Tooltip": "Organization - Tooltip", + "Permissions": "Permissions", + "Preview": "Preview", + "Provider URL": "Provider URL", + "Providers": "Providers", + "Result": "Result", + "Save": "Save", + "Sorry, you do not have permission to access this page or logged in status invalid.": "Sorry, you do not have permission to access this page or logged in status invalid.", + "Stores": "Stores", + "Successfully added": "Successfully added", + "Successfully deleted": "Successfully deleted", + "URL": "URL", + "Updated time": "Updated time", + "Users": "Users", + "Vectors": "Vectors", + "Videos": "Videos", + "View": "View", + "Wordsets": "Wordsets" + }, + "login": { + "Loading": "Loading" + }, + "message": { + "Author": "Author", + "Chat": "Chat", + "Edit Chat": "Edit Chat", + "Messages": "Messages", + "Reply to": "Reply to", + "Text": "Text", + "replyTo": "replyTo" + }, + "provider": { + "Category": "Category", + "Edit Provider": "Edit Provider", + "Provider URL": "Provider URL", + "Secret key": "Secret key", + "Type": "Type" + }, + "store": { + "Add Permission": "Add Permission", + "Apply for Permission": "Apply for Permission", + "Biology": "Biology", + "Bucket": "Bucket", + "Category": "Category", + "Chemistry": "Chemistry", + "Chinese": "Chinese", + "Collected time": "Collected time", + "Delete": "Delete", + "Domain": "Domain", + "Download": "Download", + "Edit Store": "Edit Store", + "English": "English", + "File": "File", + "File tree": "File tree", + "File type": "File type", + "Folder": "Folder", + "History": "History", + "Math": "Math", + "Move": "Move", + "New folder": "New folder", + "Other": "Other", + "Path": "Path", + "Physics": "Physics", + "Please choose the type of your data": "Please choose the type of your data", + "Please input your search term": "Please input your search term", + "Rename": "Rename", + "Science": "Science", + "Sorry, you are unauthorized to access this file or folder": "Sorry, you are unauthorized to access this file or folder", + "Subject": "Subject", + "Upload file": "Upload file", + "files and": "files and", + "folders are checked": "folders are checked" + }, + "vector": { + "Data": "Data", + "Edit Vector": "Edit Vector", + "File": "File", + "Store": "Store", + "Text": "Text" + }, + "video": { + "Cover": "Cover", + "Current time (second)": "Current time (second)", + "Edit Video": "Edit Video", + "End time (s)": "End time (s)", + "Label count": "Label count", + "Labels": "Labels", + "Start time (s)": "Start time (s)", + "Tag on pause": "Tag on pause", + "Text": "Text", + "Video": "Video", + "Video ID": "Video ID" + }, + "wordset": { + "Distance limit": "Distance limit", + "Edit Wordset": "Edit Wordset", + "Factorset": "Factorset", + "Match": "Match", + "Matched": "Matched", + "Words": "Words" + } +} \ No newline at end of file diff --git a/web/src/locales/ru/data.json b/web/src/locales/ru/data.json new file mode 100644 index 0000000..6fe6499 --- /dev/null +++ b/web/src/locales/ru/data.json @@ -0,0 +1,159 @@ +{ + "account": { + "Chats \u0026 Messages": "Chats \u0026 Messages", + "My Account": "My Account", + "Sign In": "Sign In", + "Sign Out": "Sign Out", + "Sign Up": "Sign Up" + }, + "chat": { + "AI": "AI", + "Category": "Category", + "Chats": "Chats", + "Edit Chat": "Edit Chat", + "Group": "Group", + "Message count": "Message count", + "Single": "Single", + "Type": "Type", + "User1": "User1", + "User2": "User2", + "Users": "Users" + }, + "factorset": { + "Count": "Count", + "Dimension": "Dimension", + "Edit Factorset": "Edit Factorset", + "Example factors": "Example factors", + "File name": "File name", + "File size": "File size" + }, + "general": { + "Action": "Action", + "Add": "Add", + "Back Home": "Back Home", + "Cancel": "Cancel", + "Chats": "Chats", + "Close": "Close", + "Clustering": "Clustering", + "Created time": "Created time", + "Data": "Data", + "Delete": "Delete", + "Display name": "Display name", + "Download": "Download", + "Edit": "Edit", + "Factorsets": "Factorsets", + "Failed to add": "Failed to add", + "Failed to connect to server": "Failed to connect to server", + "Failed to delete": "Failed to delete", + "Failed to get answer": "Failed to get answer", + "Home": "Home", + "Loading...": "Loading...", + "Logs": "Logs", + "Menu": "Menu", + "Messages": "Messages", + "Name": "Name", + "No.": "No.", + "OK": "OK", + "Organization": "Organization", + "Organization - Tooltip": "Organization - Tooltip", + "Permissions": "Permissions", + "Preview": "Preview", + "Provider URL": "Provider URL", + "Providers": "Providers", + "Result": "Result", + "Save": "Save", + "Sorry, you do not have permission to access this page or logged in status invalid.": "Sorry, you do not have permission to access this page or logged in status invalid.", + "Stores": "Stores", + "Successfully added": "Successfully added", + "Successfully deleted": "Successfully deleted", + "URL": "URL", + "Updated time": "Updated time", + "Users": "Users", + "Vectors": "Vectors", + "Videos": "Videos", + "View": "View", + "Wordsets": "Wordsets" + }, + "login": { + "Loading": "Loading" + }, + "message": { + "Author": "Author", + "Chat": "Chat", + "Edit Chat": "Edit Chat", + "Messages": "Messages", + "Reply to": "Reply to", + "Text": "Text", + "replyTo": "replyTo" + }, + "provider": { + "Category": "Category", + "Edit Provider": "Edit Provider", + "Provider URL": "Provider URL", + "Secret key": "Secret key", + "Type": "Type" + }, + "store": { + "Add Permission": "Add Permission", + "Apply for Permission": "Apply for Permission", + "Biology": "Biology", + "Bucket": "Bucket", + "Category": "Category", + "Chemistry": "Chemistry", + "Chinese": "Chinese", + "Collected time": "Collected time", + "Delete": "Delete", + "Domain": "Domain", + "Download": "Download", + "Edit Store": "Edit Store", + "English": "English", + "File": "File", + "File tree": "File tree", + "File type": "File type", + "Folder": "Folder", + "History": "History", + "Math": "Math", + "Move": "Move", + "New folder": "New folder", + "Other": "Other", + "Path": "Path", + "Physics": "Physics", + "Please choose the type of your data": "Please choose the type of your data", + "Please input your search term": "Please input your search term", + "Rename": "Rename", + "Science": "Science", + "Sorry, you are unauthorized to access this file or folder": "Sorry, you are unauthorized to access this file or folder", + "Subject": "Subject", + "Upload file": "Upload file", + "files and": "files and", + "folders are checked": "folders are checked" + }, + "vector": { + "Data": "Data", + "Edit Vector": "Edit Vector", + "File": "File", + "Store": "Store", + "Text": "Text" + }, + "video": { + "Cover": "Cover", + "Current time (second)": "Current time (second)", + "Edit Video": "Edit Video", + "End time (s)": "End time (s)", + "Label count": "Label count", + "Labels": "Labels", + "Start time (s)": "Start time (s)", + "Tag on pause": "Tag on pause", + "Text": "Text", + "Video": "Video", + "Video ID": "Video ID" + }, + "wordset": { + "Distance limit": "Distance limit", + "Edit Wordset": "Edit Wordset", + "Factorset": "Factorset", + "Match": "Match", + "Matched": "Matched", + "Words": "Words" + } +} \ No newline at end of file diff --git a/web/src/locales/zh/data.json b/web/src/locales/zh/data.json index 9166a08..898bc7c 100644 --- a/web/src/locales/zh/data.json +++ b/web/src/locales/zh/data.json @@ -1,13 +1,39 @@ { "account": { + "Chats \u0026 Messages": "Chats \u0026 Messages", "My Account": "我的账户", "Sign In": "登录", "Sign Out": "登出", "Sign Up": "注册" }, + "chat": { + "AI": "AI", + "Category": "Category", + "Chats": "Chats", + "Edit Chat": "Edit Chat", + "Group": "Group", + "Message count": "Message count", + "Single": "Single", + "Type": "Type", + "User1": "User1", + "User2": "User2", + "Users": "Users" + }, + "factorset": { + "Count": "个数", + "Dimension": "维度", + "Edit Factorset": "编辑向量集", + "Example factors": "示例向量", + "File name": "文件名", + "File size": "文件大小" + }, "general": { "Action": "操作", "Add": "添加", + "Back Home": "Back Home", + "Cancel": "Cancel", + "Chats": "Chats", + "Close": "Close", "Clustering": "聚类分析", "Created time": "上传时间", "Data": "数据", @@ -15,22 +41,58 @@ "Display name": "显示名称", "Download": "下载", "Edit": "编辑", - "Home": "首页", + "Factorsets": "我的向量集", + "Failed to add": "Failed to add", + "Failed to connect to server": "Failed to connect to server", + "Failed to delete": "Failed to delete", + "Failed to get answer": "Failed to get answer", + "Home": "Home", "Loading...": "加载中...", + "Logs": "我的日志", + "Menu": "Menu", + "Messages": "Messages", "Name": "名称", "No.": "序号", + "OK": "OK", + "Organization": "Organization", + "Organization - Tooltip": "Organization - Tooltip", "Permissions": "我的权限", "Preview": "预览", - "Logs": "我的日志", + "Provider URL": "Provider URL", + "Providers": "Providers", "Result": "结果", "Save": "保存", + "Sorry, you do not have permission to access this page or logged in status invalid.": "Sorry, you do not have permission to access this page or logged in status invalid.", "Stores": "我的数据仓库", + "Successfully added": "Successfully added", + "Successfully deleted": "Successfully deleted", "URL": "链接", - "Factorsets": "我的向量集", + "Updated time": "Updated time", + "Users": "Users", + "Vectors": "Vectors", "Videos": "我的视频", "View": "查看", "Wordsets": "我的词汇集" }, + "login": { + "Loading": "Loading" + }, + "message": { + "Author": "Author", + "Chat": "Chat", + "Edit Chat": "Edit Chat", + "Messages": "Messages", + "Reply to": "Reply to", + "Text": "Text", + "replyTo": "replyTo" + }, + "provider": { + "Category": "Category", + "Edit Provider": "Edit Provider", + "Provider URL": "Provider URL", + "Secret key": "Secret key", + "Type": "Type" + }, "store": { "Add Permission": "添加权限", "Apply for Permission": "申请权限", @@ -66,13 +128,12 @@ "files and": "个文件和", "folders are checked": "文件夹已被选择" }, - "factorset": { - "Count": "个数", - "Dimension": "维度", - "Edit Factorset": "编辑向量集", - "Example factors": "示例向量", - "File name": "文件名", - "File size": "文件大小" + "vector": { + "Data": "Data", + "Edit Vector": "Edit Vector", + "File": "File", + "Store": "Store", + "Text": "Text" }, "video": { "Cover": "封面图片", @@ -88,13 +149,11 @@ "Video ID": "视频ID" }, "wordset": { - "All words": "所有词汇", "Distance limit": "距离上限", "Edit Wordset": "编辑词汇集", + "Factorset": "向量集", "Match": "匹配", "Matched": "匹配度", - "Valid words": "有效词汇", - "Factorset": "向量集", "Words": "词汇表" } -} +} \ No newline at end of file