Skip to content

Commit

Permalink
get new code
Browse files Browse the repository at this point in the history
  • Loading branch information
isthaison committed Dec 13, 2024
1 parent b101668 commit 0382691
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
12 changes: 10 additions & 2 deletions web/src/locales/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,18 @@ const enFlattened = flattenObject(translation_en);
const viFlattened = flattenObject(translation_vi);
const esFlattened = flattenObject(translation_es);
const zhFlattened = flattenObject(translation_zh);
const jaFlattened = flattenObject(translation_ja);
const zh_traditionalFlattened = flattenObject(translation_zh_traditional);
export const translationTable = createTranslationTable(
[enFlattened, viFlattened, esFlattened, zhFlattened, zh_traditionalFlattened],
['English', 'Vietnamese', 'Spanish', 'zh', 'zh-TRADITIONAL'],
[
enFlattened,
viFlattened,
esFlattened,
zhFlattened,
zh_traditionalFlattened,
jaFlattened,
],
['English', 'Vietnamese', 'Spanish', 'zh', 'zh-TRADITIONAL', 'ja'],
);
i18n
.use(initReactI18next)
Expand Down
7 changes: 6 additions & 1 deletion web/src/locales/vi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export default {
submit: 'Gửi',
vietnamese: 'Tiếng việt',
spanish: 'Tiếng Tây Ban Nha',
japanese: 'Tiếng Nhật',
},
login: {
login: 'Đăng nhập',
Expand Down Expand Up @@ -447,6 +448,7 @@ export default {
'Trong các cuộc trò chuyện nhiều vòng, truy vấn vào cơ sở kiến thức được tối ưu hóa. Mô hình lớn sẽ được gọi để sử dụng thêm các token.',
howUseId: 'Làm thế nào để sử dụng ID cuộc trò chuyện?',
description: 'Mô tả về trợ lý',
betaError: `"Beta API Token" không được để trống!`,
},
setting: {
profile: 'Hồ sơ',
Expand Down Expand Up @@ -841,7 +843,7 @@ export default {
timePeriod: 'Kỳ hạn',
qWeatherLangOptions: {
zh: 'Giản thể Trung Quốc',
'zh-hant': '繁體中文',
'zh-hant': 'Phồn thể Trung Quốc',
en: 'Tiếng Anh',
de: 'Tiếng Đức',
es: 'Tiếng Tây Ban Nha',
Expand Down Expand Up @@ -1079,6 +1081,9 @@ export default {
jsonUploadTypeErrorMessage: 'Vui lòng tải lên tệp json',
dynamicParameters: 'Tham số động',
emailSubject: 'Tiêu đề email',
ccEmail: 'Email CC',
toEmailTip: 'to_email: Email người nhận (Bắt buộc)',
ccEmailTip: 'cc_email: Email CC (Tùy chọn)',
},
footer: {
profile: 'All rights reserved @ React',
Expand Down
9 changes: 8 additions & 1 deletion web/src/pages/user-setting/setting-locale/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@ function UserSettingLocale() {
return (
<TranslationTable
data={translationTable}
languages={['English', 'Vietnamese', 'Spanish', 'zh', 'zh-TRADITIONAL']}
languages={[
'English',
'Vietnamese',
'Spanish',
'zh',
'zh-TRADITIONAL',
'ja',
]}
/>
);
}
Expand Down

0 comments on commit 0382691

Please sign in to comment.