@lobehub/chat 0.114.7 → 0.114.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/.i18nrc.js +15 -12
  2. package/CHANGELOG.md +42 -0
  3. package/locales/{de_DE → de-DE}/common.json +20 -0
  4. package/locales/{en_US → en-US}/common.json +20 -0
  5. package/locales/{es_ES → es-ES}/common.json +20 -0
  6. package/locales/{fr_FR → fr-FR}/common.json +20 -0
  7. package/locales/it-IT/chat.json +77 -0
  8. package/locales/it-IT/common.json +113 -0
  9. package/locales/it-IT/empty.json +6 -0
  10. package/locales/it-IT/error.json +53 -0
  11. package/locales/it-IT/market.json +30 -0
  12. package/locales/it-IT/migration.json +45 -0
  13. package/locales/it-IT/plugin.json +166 -0
  14. package/locales/it-IT/setting.json +306 -0
  15. package/locales/it-IT/welcome.json +14 -0
  16. package/locales/{ja_JP → ja-JP}/common.json +20 -0
  17. package/locales/{ko_KR → ko-KR}/common.json +20 -0
  18. package/locales/nl-NL/chat.json +77 -0
  19. package/locales/nl-NL/common.json +113 -0
  20. package/locales/nl-NL/empty.json +6 -0
  21. package/locales/nl-NL/error.json +53 -0
  22. package/locales/nl-NL/market.json +30 -0
  23. package/locales/nl-NL/migration.json +45 -0
  24. package/locales/nl-NL/plugin.json +166 -0
  25. package/locales/nl-NL/setting.json +306 -0
  26. package/locales/nl-NL/welcome.json +14 -0
  27. package/locales/pl-PL/chat.json +77 -0
  28. package/locales/pl-PL/common.json +113 -0
  29. package/locales/pl-PL/empty.json +6 -0
  30. package/locales/pl-PL/error.json +53 -0
  31. package/locales/pl-PL/market.json +30 -0
  32. package/locales/pl-PL/migration.json +45 -0
  33. package/locales/pl-PL/plugin.json +166 -0
  34. package/locales/pl-PL/setting.json +306 -0
  35. package/locales/pl-PL/welcome.json +14 -0
  36. package/locales/{pt_BR → pt-BR}/common.json +20 -0
  37. package/locales/{ru_RU → ru-RU}/common.json +20 -0
  38. package/locales/{ru_RU → ru-RU}/setting.json +1 -1
  39. package/locales/{tr_TR → tr-TR}/common.json +20 -0
  40. package/locales/{zh_CN → zh-CN}/common.json +20 -0
  41. package/locales/{zh_TW → zh-TW}/common.json +20 -0
  42. package/package.json +1 -1
  43. package/scripts/i18nWorkflow/const.ts +1 -2
  44. package/scripts/i18nWorkflow/genDefaultLocale.ts +2 -2
  45. package/scripts/i18nWorkflow/genDiff.ts +2 -2
  46. package/scripts/i18nWorkflow/index.ts +0 -4
  47. package/scripts/i18nWorkflow/utils.ts +0 -11
  48. package/src/locales/create.ts +25 -24
  49. package/src/locales/default/common.ts +20 -0
  50. package/src/locales/default/index.ts +23 -0
  51. package/src/locales/options.ts +16 -12
  52. package/src/locales/resources.ts +18 -0
  53. package/scripts/i18nWorkflow/genResources.ts +0 -26
  54. package/src/locales/resources/de_DE.ts +0 -23
  55. package/src/locales/resources/en_US.ts +0 -23
  56. package/src/locales/resources/es_ES.ts +0 -23
  57. package/src/locales/resources/fr_FR.ts +0 -23
  58. package/src/locales/resources/index.ts +0 -31
  59. package/src/locales/resources/ja_JP.ts +0 -23
  60. package/src/locales/resources/ko_KR.ts +0 -23
  61. package/src/locales/resources/pt_BR.ts +0 -23
  62. package/src/locales/resources/ru_RU.ts +0 -23
  63. package/src/locales/resources/tr_TR.ts +0 -23
  64. package/src/locales/resources/zh_CN.ts +0 -23
  65. package/src/locales/resources/zh_TW.ts +0 -23
  66. /package/locales/{de_DE → de-DE}/chat.json +0 -0
  67. /package/locales/{de_DE → de-DE}/empty.json +0 -0
  68. /package/locales/{de_DE → de-DE}/error.json +0 -0
  69. /package/locales/{de_DE → de-DE}/market.json +0 -0
  70. /package/locales/{de_DE → de-DE}/migration.json +0 -0
  71. /package/locales/{de_DE → de-DE}/plugin.json +0 -0
  72. /package/locales/{de_DE → de-DE}/setting.json +0 -0
  73. /package/locales/{de_DE → de-DE}/welcome.json +0 -0
  74. /package/locales/{en_US → en-US}/chat.json +0 -0
  75. /package/locales/{en_US → en-US}/empty.json +0 -0
  76. /package/locales/{en_US → en-US}/error.json +0 -0
  77. /package/locales/{en_US → en-US}/market.json +0 -0
  78. /package/locales/{en_US → en-US}/migration.json +0 -0
  79. /package/locales/{en_US → en-US}/plugin.json +0 -0
  80. /package/locales/{en_US → en-US}/setting.json +0 -0
  81. /package/locales/{en_US → en-US}/welcome.json +0 -0
  82. /package/locales/{es_ES → es-ES}/chat.json +0 -0
  83. /package/locales/{es_ES → es-ES}/empty.json +0 -0
  84. /package/locales/{es_ES → es-ES}/error.json +0 -0
  85. /package/locales/{es_ES → es-ES}/market.json +0 -0
  86. /package/locales/{es_ES → es-ES}/migration.json +0 -0
  87. /package/locales/{es_ES → es-ES}/plugin.json +0 -0
  88. /package/locales/{es_ES → es-ES}/setting.json +0 -0
  89. /package/locales/{es_ES → es-ES}/welcome.json +0 -0
  90. /package/locales/{fr_FR → fr-FR}/chat.json +0 -0
  91. /package/locales/{fr_FR → fr-FR}/empty.json +0 -0
  92. /package/locales/{fr_FR → fr-FR}/error.json +0 -0
  93. /package/locales/{fr_FR → fr-FR}/market.json +0 -0
  94. /package/locales/{fr_FR → fr-FR}/migration.json +0 -0
  95. /package/locales/{fr_FR → fr-FR}/plugin.json +0 -0
  96. /package/locales/{fr_FR → fr-FR}/setting.json +0 -0
  97. /package/locales/{fr_FR → fr-FR}/welcome.json +0 -0
  98. /package/locales/{ja_JP → ja-JP}/chat.json +0 -0
  99. /package/locales/{ja_JP → ja-JP}/empty.json +0 -0
  100. /package/locales/{ja_JP → ja-JP}/error.json +0 -0
  101. /package/locales/{ja_JP → ja-JP}/market.json +0 -0
  102. /package/locales/{ja_JP → ja-JP}/migration.json +0 -0
  103. /package/locales/{ja_JP → ja-JP}/plugin.json +0 -0
  104. /package/locales/{ja_JP → ja-JP}/setting.json +0 -0
  105. /package/locales/{ja_JP → ja-JP}/welcome.json +0 -0
  106. /package/locales/{ko_KR → ko-KR}/chat.json +0 -0
  107. /package/locales/{ko_KR → ko-KR}/empty.json +0 -0
  108. /package/locales/{ko_KR → ko-KR}/error.json +0 -0
  109. /package/locales/{ko_KR → ko-KR}/market.json +0 -0
  110. /package/locales/{ko_KR → ko-KR}/migration.json +0 -0
  111. /package/locales/{ko_KR → ko-KR}/plugin.json +0 -0
  112. /package/locales/{ko_KR → ko-KR}/setting.json +0 -0
  113. /package/locales/{ko_KR → ko-KR}/welcome.json +0 -0
  114. /package/locales/{pt_BR → pt-BR}/chat.json +0 -0
  115. /package/locales/{pt_BR → pt-BR}/empty.json +0 -0
  116. /package/locales/{pt_BR → pt-BR}/error.json +0 -0
  117. /package/locales/{pt_BR → pt-BR}/market.json +0 -0
  118. /package/locales/{pt_BR → pt-BR}/migration.json +0 -0
  119. /package/locales/{pt_BR → pt-BR}/plugin.json +0 -0
  120. /package/locales/{pt_BR → pt-BR}/setting.json +0 -0
  121. /package/locales/{pt_BR → pt-BR}/welcome.json +0 -0
  122. /package/locales/{ru_RU → ru-RU}/chat.json +0 -0
  123. /package/locales/{ru_RU → ru-RU}/empty.json +0 -0
  124. /package/locales/{ru_RU → ru-RU}/error.json +0 -0
  125. /package/locales/{ru_RU → ru-RU}/market.json +0 -0
  126. /package/locales/{ru_RU → ru-RU}/migration.json +0 -0
  127. /package/locales/{ru_RU → ru-RU}/plugin.json +0 -0
  128. /package/locales/{ru_RU → ru-RU}/welcome.json +0 -0
  129. /package/locales/{tr_TR → tr-TR}/chat.json +0 -0
  130. /package/locales/{tr_TR → tr-TR}/empty.json +0 -0
  131. /package/locales/{tr_TR → tr-TR}/error.json +0 -0
  132. /package/locales/{tr_TR → tr-TR}/market.json +0 -0
  133. /package/locales/{tr_TR → tr-TR}/migration.json +0 -0
  134. /package/locales/{tr_TR → tr-TR}/plugin.json +0 -0
  135. /package/locales/{tr_TR → tr-TR}/setting.json +0 -0
  136. /package/locales/{tr_TR → tr-TR}/welcome.json +0 -0
  137. /package/locales/{zh_CN → zh-CN}/chat.json +0 -0
  138. /package/locales/{zh_CN → zh-CN}/empty.json +0 -0
  139. /package/locales/{zh_CN → zh-CN}/error.json +0 -0
  140. /package/locales/{zh_CN → zh-CN}/market.json +0 -0
  141. /package/locales/{zh_CN → zh-CN}/migration.json +0 -0
  142. /package/locales/{zh_CN → zh-CN}/plugin.json +0 -0
  143. /package/locales/{zh_CN → zh-CN}/setting.json +0 -0
  144. /package/locales/{zh_CN → zh-CN}/welcome.json +0 -0
  145. /package/locales/{zh_TW → zh-TW}/chat.json +0 -0
  146. /package/locales/{zh_TW → zh-TW}/empty.json +0 -0
  147. /package/locales/{zh_TW → zh-TW}/error.json +0 -0
  148. /package/locales/{zh_TW → zh-TW}/market.json +0 -0
  149. /package/locales/{zh_TW → zh-TW}/migration.json +0 -0
  150. /package/locales/{zh_TW → zh-TW}/plugin.json +0 -0
  151. /package/locales/{zh_TW → zh-TW}/setting.json +0 -0
  152. /package/locales/{zh_TW → zh-TW}/welcome.json +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "0.114.7",
3
+ "version": "0.114.9",
4
4
  "description": "Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
5
5
  "keywords": [
6
6
  "framework",
@@ -13,7 +13,6 @@ export const entryLocaleJsonFilepath = (file: string) =>
13
13
  resolve(localesDir, i18nConfig.entryLocale, file);
14
14
  export const outputLocaleJsonFilepath = (locale: string, file: string) =>
15
15
  resolve(localesDir, locale, file);
16
- export const srcLocalesResources = resolve(root, srcLocalesDir, 'resources');
17
- export const localesResourcesFilepath = (locale: string) => resolve(srcLocalesResources, locale);
16
+ export const srcDefaultLocales = resolve(root, srcLocalesDir, 'default');
18
17
 
19
18
  export { default as i18nConfig } from '../../.i18nrc';
@@ -1,13 +1,13 @@
1
1
  import { consola } from 'consola';
2
2
  import { colors } from 'consola/utils';
3
3
 
4
- import { entryLocaleJsonFilepath, i18nConfig, localesResourcesFilepath } from './const';
4
+ import { entryLocaleJsonFilepath, i18nConfig, srcDefaultLocales } from './const';
5
5
  import { tagWhite, writeJSON } from './utils';
6
6
 
7
7
  export const genDefaultLocale = () => {
8
8
  consola.info(`Default locale is ${i18nConfig.entryLocale}...`);
9
9
 
10
- const resources = require(localesResourcesFilepath(i18nConfig.entryLocale));
10
+ const resources = require(srcDefaultLocales);
11
11
  const data = Object.entries(resources.default);
12
12
  consola.start(`Generate default locale json, found ${data.length} namespaces...`);
13
13
 
@@ -7,15 +7,15 @@ import { existsSync } from 'node:fs';
7
7
  import {
8
8
  entryLocaleJsonFilepath,
9
9
  i18nConfig,
10
- localesResourcesFilepath,
11
10
  outputLocaleJsonFilepath,
11
+ srcDefaultLocales,
12
12
  } from './const';
13
13
  import { readJSON, tagWhite, writeJSON } from './utils';
14
14
 
15
15
  export const genDiff = () => {
16
16
  consola.start(`Diff between Dev/Prod local...`);
17
17
 
18
- const resources = require(localesResourcesFilepath(i18nConfig.entryLocale));
18
+ const resources = require(srcDefaultLocales);
19
19
  const data = Object.entries(resources.default);
20
20
 
21
21
  for (const [ns, devJSON] of data) {
@@ -1,6 +1,5 @@
1
1
  import { genDefaultLocale } from './genDefaultLocale';
2
2
  import { genDiff } from './genDiff';
3
- import { genResources } from './genResources';
4
3
  import { split } from './utils';
5
4
 
6
5
  split('DIFF ANALYSIS');
@@ -9,7 +8,4 @@ genDiff();
9
8
  split('GENERATE DEFAULT LOCALE');
10
9
  genDefaultLocale();
11
10
 
12
- split('GENERATE RESOURCE & TOC');
13
- genResources();
14
-
15
11
  split('GENERATE I18N FILES');
@@ -1,11 +1,9 @@
1
1
  import { consola } from 'consola';
2
2
  import { colors } from 'consola/utils';
3
- import { tocForResources } from 'i18next-resources-for-ts';
4
3
  import { readFileSync, writeFileSync } from 'node:fs';
5
4
  import { resolve } from 'node:path';
6
5
 
7
6
  import i18nConfig from '../../.i18nrc';
8
- import { srcLocalesResources } from './const';
9
7
 
10
8
  export const readJSON = (filePath: string) => {
11
9
  const data = readFileSync(filePath, 'utf8');
@@ -48,15 +46,6 @@ export const genNamespaceList = (files: string[], locale: string) => {
48
46
  }));
49
47
  };
50
48
 
51
- export const genToc = (files: string[], locale: string) => {
52
- const ns = genNamespaceList(files, locale);
53
- let toc = tocForResources(ns, srcLocalesResources).replaceAll('\\', '/');
54
- if (locale === i18nConfig.entryLocale) {
55
- toc = toc.replaceAll('.json', '').replaceAll('../../../locales/zh_CN', '../default');
56
- }
57
- return toc;
58
- };
59
-
60
49
  export const tagBlue = (text: string) => colors.bgBlueBright(colors.black(` ${text} `));
61
50
  export const tagYellow = (text: string) => colors.bgYellowBright(colors.black(` ${text} `));
62
51
  export const tagGreen = (text: string) => colors.bgGreenBright(colors.black(` ${text} `));
@@ -1,43 +1,46 @@
1
1
  import i18n from 'i18next';
2
2
  import LanguageDetector from 'i18next-browser-languagedetector';
3
+ import resourcesToBackend from 'i18next-resources-to-backend';
3
4
  import { initReactI18next } from 'react-i18next';
4
5
 
5
6
  import { getClientConfig } from '@/config/client';
6
7
  import { DEFAULT_LANG, LOBE_LOCALE_COOKIE } from '@/const/locale';
7
8
  import { COOKIE_CACHE_DAYS } from '@/const/settings';
8
- import type { Namespaces } from '@/types/locale';
9
- import { isOnServerSide } from '@/utils/env';
10
-
11
- import { resources } from './options';
9
+ import { isDev, isOnServerSide } from '@/utils/env';
12
10
 
13
11
  const { I18N_DEBUG, I18N_DEBUG_BROWSER, I18N_DEBUG_SERVER } = getClientConfig();
14
12
  const debugMode = I18N_DEBUG ?? isOnServerSide ? I18N_DEBUG_SERVER : I18N_DEBUG_BROWSER;
15
13
 
16
14
  export const createI18nNext = (lang?: string) => {
17
- const ns: Namespaces[] = [
18
- 'error',
19
- 'common',
20
- 'empty',
21
- 'error',
22
- 'market',
23
- 'plugin',
24
- 'setting',
25
- 'welcome',
26
- ];
15
+ const instance = i18n
16
+ .use(initReactI18next)
17
+ .use(LanguageDetector)
18
+ .use(
19
+ resourcesToBackend(async (lng: string, ns: string) => {
20
+ switch (lng) {
21
+ case 'zh-CN':
22
+ case 'zh': {
23
+ if (isDev) return import(`./default/${ns}`);
24
+
25
+ return import(`@/../locales/zh-CN/${ns}.json`);
26
+ }
27
27
 
28
- const instance = i18n.use(initReactI18next).use(LanguageDetector);
29
- // not find a good way to handle suspense loading
30
- // .use(
31
- // resourcesToBackend(
32
- // isDev ? resources : (lng: string, ns: string) => import(`../../locales/${lng}/${ns}.json`),
33
- // ),
34
- // )
28
+ case 'en': {
29
+ return import(`@/../locales/en-US/${ns}.json`);
30
+ }
31
+
32
+ default: {
33
+ return import(`@/../locales/${lng}/${ns}.json`);
34
+ }
35
+ }
36
+ }),
37
+ );
35
38
 
36
39
  return {
37
40
  init: () =>
38
41
  instance.init({
39
42
  debug: debugMode,
40
- defaultNS: ['error', 'common'],
43
+ defaultNS: ['error', 'common', 'empty'],
41
44
  detection: {
42
45
  caches: ['cookie'],
43
46
  cookieMinutes: 60 * 24 * COOKIE_CACHE_DAYS,
@@ -48,8 +51,6 @@ export const createI18nNext = (lang?: string) => {
48
51
  escapeValue: false,
49
52
  },
50
53
  lng: lang,
51
- ns,
52
- resources,
53
54
  }),
54
55
  instance,
55
56
  };
@@ -50,16 +50,36 @@ export default {
50
50
  title: '导入数据',
51
51
  },
52
52
  lang: {
53
+ 'bn': '孟加拉语',
54
+ 'cs-CZ': '捷克语',
55
+ 'da-DK': '丹麦语',
53
56
  'de-DE': '德语',
57
+ 'el-GR': '希腊语',
54
58
  'en': '英语',
55
59
  'en-US': '英语',
56
60
  'es-ES': '西班牙语',
61
+ 'fi-FI': '芬兰语',
57
62
  'fr-FR': '法语',
63
+ 'hi-IN': '印地语',
64
+ 'hu-HU': '匈牙利语',
65
+ 'id-ID': '印尼语',
66
+ 'it-IT': '意大利语',
58
67
  'ja-JP': '日语',
59
68
  'ko-KR': '韩语',
69
+ 'nl-NL': '荷兰语',
70
+ 'no-NO': '挪威语',
71
+ 'pl-PL': '波兰语',
60
72
  'pt-BR': '葡萄牙语',
73
+ 'pt-PT': '葡萄牙语',
74
+ 'ro-RO': '罗马尼亚语',
61
75
  'ru-RU': '俄语',
76
+ 'sk-SK': '斯洛伐克语',
77
+ 'sr-RS': '塞尔维亚语',
78
+ 'sv-SE': '瑞典语',
79
+ 'th-TH': '泰语',
62
80
  'tr-TR': '土耳其语',
81
+ 'uk-UA': '乌克兰语',
82
+ 'vi-VN': '越南语',
63
83
  'zh': '简体中文',
64
84
  'zh-CN': '简体中文',
65
85
  'zh-TW': '繁体中文',
@@ -0,0 +1,23 @@
1
+ import chat from './chat';
2
+ import common from './common';
3
+ import empty from './empty';
4
+ import error from './error';
5
+ import market from './market';
6
+ import migration from './migration';
7
+ import plugin from './plugin';
8
+ import setting from './setting';
9
+ import welcome from './welcome';
10
+
11
+ const resources = {
12
+ chat,
13
+ common,
14
+ empty,
15
+ error,
16
+ market,
17
+ migration,
18
+ plugin,
19
+ setting,
20
+ welcome,
21
+ } as const;
22
+
23
+ export default resources;
@@ -1,6 +1,6 @@
1
1
  import type { Locales } from '@/types/locale';
2
2
 
3
- import _resources from './resources';
3
+ import { locales } from './resources';
4
4
 
5
5
  type LocaleOptions = {
6
6
  label: string;
@@ -45,21 +45,25 @@ export const localeOptions: LocaleOptions = [
45
45
  value: 'pt-BR',
46
46
  },
47
47
  {
48
- label: 'Russian',
48
+ label: 'Русский',
49
49
  value: 'ru-RU',
50
50
  },
51
51
  {
52
- label: 'Turkish',
52
+ label: 'Türkçe',
53
53
  value: 'tr-TR',
54
54
  },
55
+ {
56
+ label: 'Polski',
57
+ value: 'pl-PL',
58
+ },
59
+ {
60
+ label: 'Nederlands',
61
+ value: 'nl-NL',
62
+ },
63
+ {
64
+ label: 'Italiano',
65
+ value: 'it-IT',
66
+ },
55
67
  ] as LocaleOptions;
56
68
 
57
- export const supportLangs: string[] = localeOptions.map((i) => i.value);
58
-
59
- export const resources = {
60
- ..._resources,
61
- en: _resources['en-US'],
62
- zh: _resources['zh-CN'],
63
- };
64
-
65
- export const supportLocales = Object.keys(resources);
69
+ export const supportLocales: string[] = [...locales, 'en', 'zh'];
@@ -0,0 +1,18 @@
1
+ import resources from './default';
2
+
3
+ export const locales = [
4
+ 'de-DE',
5
+ 'en-US',
6
+ 'es-ES',
7
+ 'fr-FR',
8
+ 'ja-JP',
9
+ 'ko-KR',
10
+ 'pt-BR',
11
+ 'ru-RU',
12
+ 'tr-TR',
13
+ 'zh-CN',
14
+ 'zh-TW',
15
+ ] as const;
16
+
17
+ export type DefaultResources = typeof resources;
18
+ export type Locales = (typeof locales)[number];
@@ -1,26 +0,0 @@
1
- import { consola } from 'consola';
2
- import { colors } from 'consola/utils';
3
- import { writeFileSync } from 'node:fs';
4
-
5
- import { i18nConfig, localeDirJsonList, localesResourcesFilepath } from './const';
6
- import { genResourcesContent, genToc, tagBlue, tagGreen } from './utils';
7
-
8
- const locales = [i18nConfig.entryLocale, ...i18nConfig.outputLocales];
9
-
10
- export const genResources = () => {
11
- consola.start(`Generate locale resources and types, found ${locales.length} locales...`);
12
-
13
- for (const locale of locales) {
14
- const files = localeDirJsonList(locale);
15
- const toc = genToc(files, locale);
16
-
17
- const filepath = localesResourcesFilepath(`${locale}.ts`);
18
- writeFileSync(filepath, toc);
19
- consola.success(tagBlue(locale), colors.gray(filepath));
20
- }
21
-
22
- const indexFilepath = localesResourcesFilepath(`index.ts`);
23
- writeFileSync(indexFilepath, genResourcesContent(locales));
24
-
25
- consola.success(tagGreen('INDEX'), colors.gray(indexFilepath));
26
- };
@@ -1,23 +0,0 @@
1
- import chat from '../../../locales/de_DE/chat.json';
2
- import common from '../../../locales/de_DE/common.json';
3
- import empty from '../../../locales/de_DE/empty.json';
4
- import error from '../../../locales/de_DE/error.json';
5
- import market from '../../../locales/de_DE/market.json';
6
- import migration from '../../../locales/de_DE/migration.json';
7
- import plugin from '../../../locales/de_DE/plugin.json';
8
- import setting from '../../../locales/de_DE/setting.json';
9
- import welcome from '../../../locales/de_DE/welcome.json';
10
-
11
- const resources = {
12
- chat,
13
- common,
14
- empty,
15
- error,
16
- market,
17
- migration,
18
- plugin,
19
- setting,
20
- welcome,
21
- } as const;
22
-
23
- export default resources;
@@ -1,23 +0,0 @@
1
- import chat from '../../../locales/en_US/chat.json';
2
- import common from '../../../locales/en_US/common.json';
3
- import empty from '../../../locales/en_US/empty.json';
4
- import error from '../../../locales/en_US/error.json';
5
- import market from '../../../locales/en_US/market.json';
6
- import migration from '../../../locales/en_US/migration.json';
7
- import plugin from '../../../locales/en_US/plugin.json';
8
- import setting from '../../../locales/en_US/setting.json';
9
- import welcome from '../../../locales/en_US/welcome.json';
10
-
11
- const resources = {
12
- chat,
13
- common,
14
- empty,
15
- error,
16
- market,
17
- migration,
18
- plugin,
19
- setting,
20
- welcome,
21
- } as const;
22
-
23
- export default resources;
@@ -1,23 +0,0 @@
1
- import chat from '../../../locales/es_ES/chat.json';
2
- import common from '../../../locales/es_ES/common.json';
3
- import empty from '../../../locales/es_ES/empty.json';
4
- import error from '../../../locales/es_ES/error.json';
5
- import market from '../../../locales/es_ES/market.json';
6
- import migration from '../../../locales/es_ES/migration.json';
7
- import plugin from '../../../locales/es_ES/plugin.json';
8
- import setting from '../../../locales/es_ES/setting.json';
9
- import welcome from '../../../locales/es_ES/welcome.json';
10
-
11
- const resources = {
12
- chat,
13
- common,
14
- empty,
15
- error,
16
- market,
17
- migration,
18
- plugin,
19
- setting,
20
- welcome,
21
- } as const;
22
-
23
- export default resources;
@@ -1,23 +0,0 @@
1
- import chat from '../../../locales/fr_FR/chat.json';
2
- import common from '../../../locales/fr_FR/common.json';
3
- import empty from '../../../locales/fr_FR/empty.json';
4
- import error from '../../../locales/fr_FR/error.json';
5
- import market from '../../../locales/fr_FR/market.json';
6
- import migration from '../../../locales/fr_FR/migration.json';
7
- import plugin from '../../../locales/fr_FR/plugin.json';
8
- import setting from '../../../locales/fr_FR/setting.json';
9
- import welcome from '../../../locales/fr_FR/welcome.json';
10
-
11
- const resources = {
12
- chat,
13
- common,
14
- empty,
15
- error,
16
- market,
17
- migration,
18
- plugin,
19
- setting,
20
- welcome,
21
- } as const;
22
-
23
- export default resources;
@@ -1,31 +0,0 @@
1
- import de_DE from './de_DE';
2
- import en_US from './en_US';
3
- import es_ES from './es_ES';
4
- import fr_FR from './fr_FR';
5
- import ja_JP from './ja_JP';
6
- import ko_KR from './ko_KR';
7
- import pt_BR from './pt_BR';
8
- import ru_RU from './ru_RU';
9
- import tr_TR from './tr_TR';
10
- import zh_CN from './zh_CN';
11
- import zh_TW from './zh_TW';
12
-
13
- const resources = {
14
- 'de-DE': de_DE,
15
- 'en-US': en_US,
16
- 'es-ES': es_ES,
17
- 'fr-FR': fr_FR,
18
- 'ja-JP': ja_JP,
19
- 'ko-KR': ko_KR,
20
- 'pt-BR': pt_BR,
21
- 'ru-RU': ru_RU,
22
- 'tr-TR': tr_TR,
23
- 'zh-CN': zh_CN,
24
- 'zh-TW': zh_TW,
25
- } as const;
26
- export default resources;
27
- export const defaultResources = zh_CN;
28
- export type Resources = typeof resources;
29
- export type DefaultResources = typeof defaultResources;
30
- export type Namespaces = keyof DefaultResources;
31
- export type Locales = keyof Resources;
@@ -1,23 +0,0 @@
1
- import chat from '../../../locales/ja_JP/chat.json';
2
- import common from '../../../locales/ja_JP/common.json';
3
- import empty from '../../../locales/ja_JP/empty.json';
4
- import error from '../../../locales/ja_JP/error.json';
5
- import market from '../../../locales/ja_JP/market.json';
6
- import migration from '../../../locales/ja_JP/migration.json';
7
- import plugin from '../../../locales/ja_JP/plugin.json';
8
- import setting from '../../../locales/ja_JP/setting.json';
9
- import welcome from '../../../locales/ja_JP/welcome.json';
10
-
11
- const resources = {
12
- chat,
13
- common,
14
- empty,
15
- error,
16
- market,
17
- migration,
18
- plugin,
19
- setting,
20
- welcome,
21
- } as const;
22
-
23
- export default resources;
@@ -1,23 +0,0 @@
1
- import chat from '../../../locales/ko_KR/chat.json';
2
- import common from '../../../locales/ko_KR/common.json';
3
- import empty from '../../../locales/ko_KR/empty.json';
4
- import error from '../../../locales/ko_KR/error.json';
5
- import market from '../../../locales/ko_KR/market.json';
6
- import migration from '../../../locales/ko_KR/migration.json';
7
- import plugin from '../../../locales/ko_KR/plugin.json';
8
- import setting from '../../../locales/ko_KR/setting.json';
9
- import welcome from '../../../locales/ko_KR/welcome.json';
10
-
11
- const resources = {
12
- chat,
13
- common,
14
- empty,
15
- error,
16
- market,
17
- migration,
18
- plugin,
19
- setting,
20
- welcome,
21
- } as const;
22
-
23
- export default resources;
@@ -1,23 +0,0 @@
1
- import chat from '../../../locales/pt_BR/chat.json';
2
- import common from '../../../locales/pt_BR/common.json';
3
- import empty from '../../../locales/pt_BR/empty.json';
4
- import error from '../../../locales/pt_BR/error.json';
5
- import market from '../../../locales/pt_BR/market.json';
6
- import migration from '../../../locales/pt_BR/migration.json';
7
- import plugin from '../../../locales/pt_BR/plugin.json';
8
- import setting from '../../../locales/pt_BR/setting.json';
9
- import welcome from '../../../locales/pt_BR/welcome.json';
10
-
11
- const resources = {
12
- chat,
13
- common,
14
- empty,
15
- error,
16
- market,
17
- migration,
18
- plugin,
19
- setting,
20
- welcome,
21
- } as const;
22
-
23
- export default resources;
@@ -1,23 +0,0 @@
1
- import chat from '../../../locales/ru_RU/chat.json';
2
- import common from '../../../locales/ru_RU/common.json';
3
- import empty from '../../../locales/ru_RU/empty.json';
4
- import error from '../../../locales/ru_RU/error.json';
5
- import market from '../../../locales/ru_RU/market.json';
6
- import migration from '../../../locales/ru_RU/migration.json';
7
- import plugin from '../../../locales/ru_RU/plugin.json';
8
- import setting from '../../../locales/ru_RU/setting.json';
9
- import welcome from '../../../locales/ru_RU/welcome.json';
10
-
11
- const resources = {
12
- chat,
13
- common,
14
- empty,
15
- error,
16
- market,
17
- migration,
18
- plugin,
19
- setting,
20
- welcome,
21
- } as const;
22
-
23
- export default resources;
@@ -1,23 +0,0 @@
1
- import chat from '../../../locales/tr_TR/chat.json';
2
- import common from '../../../locales/tr_TR/common.json';
3
- import empty from '../../../locales/tr_TR/empty.json';
4
- import error from '../../../locales/tr_TR/error.json';
5
- import market from '../../../locales/tr_TR/market.json';
6
- import migration from '../../../locales/tr_TR/migration.json';
7
- import plugin from '../../../locales/tr_TR/plugin.json';
8
- import setting from '../../../locales/tr_TR/setting.json';
9
- import welcome from '../../../locales/tr_TR/welcome.json';
10
-
11
- const resources = {
12
- chat,
13
- common,
14
- empty,
15
- error,
16
- market,
17
- migration,
18
- plugin,
19
- setting,
20
- welcome,
21
- } as const;
22
-
23
- export default resources;
@@ -1,23 +0,0 @@
1
- import chat from '../default/chat';
2
- import common from '../default/common';
3
- import empty from '../default/empty';
4
- import error from '../default/error';
5
- import market from '../default/market';
6
- import migration from '../default/migration';
7
- import plugin from '../default/plugin';
8
- import setting from '../default/setting';
9
- import welcome from '../default/welcome';
10
-
11
- const resources = {
12
- chat,
13
- common,
14
- empty,
15
- error,
16
- market,
17
- migration,
18
- plugin,
19
- setting,
20
- welcome,
21
- } as const;
22
-
23
- export default resources;
@@ -1,23 +0,0 @@
1
- import chat from '../../../locales/zh_TW/chat.json';
2
- import common from '../../../locales/zh_TW/common.json';
3
- import empty from '../../../locales/zh_TW/empty.json';
4
- import error from '../../../locales/zh_TW/error.json';
5
- import market from '../../../locales/zh_TW/market.json';
6
- import migration from '../../../locales/zh_TW/migration.json';
7
- import plugin from '../../../locales/zh_TW/plugin.json';
8
- import setting from '../../../locales/zh_TW/setting.json';
9
- import welcome from '../../../locales/zh_TW/welcome.json';
10
-
11
- const resources = {
12
- chat,
13
- common,
14
- empty,
15
- error,
16
- market,
17
- migration,
18
- plugin,
19
- setting,
20
- welcome,
21
- } as const;
22
-
23
- export default resources;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes