@lobehub/chat 0.114.7 → 0.114.8

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 (124) hide show
  1. package/.i18nrc.js +12 -12
  2. package/CHANGELOG.md +17 -0
  3. package/locales/{ru_RU → ru-RU}/setting.json +1 -1
  4. package/package.json +1 -1
  5. package/scripts/i18nWorkflow/const.ts +1 -2
  6. package/scripts/i18nWorkflow/genDefaultLocale.ts +2 -2
  7. package/scripts/i18nWorkflow/genDiff.ts +2 -2
  8. package/scripts/i18nWorkflow/index.ts +0 -4
  9. package/scripts/i18nWorkflow/utils.ts +0 -11
  10. package/src/locales/create.ts +25 -24
  11. package/src/locales/default/index.ts +23 -0
  12. package/src/locales/options.ts +2 -10
  13. package/src/locales/resources.ts +18 -0
  14. package/scripts/i18nWorkflow/genResources.ts +0 -26
  15. package/src/locales/resources/de_DE.ts +0 -23
  16. package/src/locales/resources/en_US.ts +0 -23
  17. package/src/locales/resources/es_ES.ts +0 -23
  18. package/src/locales/resources/fr_FR.ts +0 -23
  19. package/src/locales/resources/index.ts +0 -31
  20. package/src/locales/resources/ja_JP.ts +0 -23
  21. package/src/locales/resources/ko_KR.ts +0 -23
  22. package/src/locales/resources/pt_BR.ts +0 -23
  23. package/src/locales/resources/ru_RU.ts +0 -23
  24. package/src/locales/resources/tr_TR.ts +0 -23
  25. package/src/locales/resources/zh_CN.ts +0 -23
  26. package/src/locales/resources/zh_TW.ts +0 -23
  27. /package/locales/{de_DE → de-DE}/chat.json +0 -0
  28. /package/locales/{de_DE → de-DE}/common.json +0 -0
  29. /package/locales/{de_DE → de-DE}/empty.json +0 -0
  30. /package/locales/{de_DE → de-DE}/error.json +0 -0
  31. /package/locales/{de_DE → de-DE}/market.json +0 -0
  32. /package/locales/{de_DE → de-DE}/migration.json +0 -0
  33. /package/locales/{de_DE → de-DE}/plugin.json +0 -0
  34. /package/locales/{de_DE → de-DE}/setting.json +0 -0
  35. /package/locales/{de_DE → de-DE}/welcome.json +0 -0
  36. /package/locales/{en_US → en-US}/chat.json +0 -0
  37. /package/locales/{en_US → en-US}/common.json +0 -0
  38. /package/locales/{en_US → en-US}/empty.json +0 -0
  39. /package/locales/{en_US → en-US}/error.json +0 -0
  40. /package/locales/{en_US → en-US}/market.json +0 -0
  41. /package/locales/{en_US → en-US}/migration.json +0 -0
  42. /package/locales/{en_US → en-US}/plugin.json +0 -0
  43. /package/locales/{en_US → en-US}/setting.json +0 -0
  44. /package/locales/{en_US → en-US}/welcome.json +0 -0
  45. /package/locales/{es_ES → es-ES}/chat.json +0 -0
  46. /package/locales/{es_ES → es-ES}/common.json +0 -0
  47. /package/locales/{es_ES → es-ES}/empty.json +0 -0
  48. /package/locales/{es_ES → es-ES}/error.json +0 -0
  49. /package/locales/{es_ES → es-ES}/market.json +0 -0
  50. /package/locales/{es_ES → es-ES}/migration.json +0 -0
  51. /package/locales/{es_ES → es-ES}/plugin.json +0 -0
  52. /package/locales/{es_ES → es-ES}/setting.json +0 -0
  53. /package/locales/{es_ES → es-ES}/welcome.json +0 -0
  54. /package/locales/{fr_FR → fr-FR}/chat.json +0 -0
  55. /package/locales/{fr_FR → fr-FR}/common.json +0 -0
  56. /package/locales/{fr_FR → fr-FR}/empty.json +0 -0
  57. /package/locales/{fr_FR → fr-FR}/error.json +0 -0
  58. /package/locales/{fr_FR → fr-FR}/market.json +0 -0
  59. /package/locales/{fr_FR → fr-FR}/migration.json +0 -0
  60. /package/locales/{fr_FR → fr-FR}/plugin.json +0 -0
  61. /package/locales/{fr_FR → fr-FR}/setting.json +0 -0
  62. /package/locales/{fr_FR → fr-FR}/welcome.json +0 -0
  63. /package/locales/{ja_JP → ja-JP}/chat.json +0 -0
  64. /package/locales/{ja_JP → ja-JP}/common.json +0 -0
  65. /package/locales/{ja_JP → ja-JP}/empty.json +0 -0
  66. /package/locales/{ja_JP → ja-JP}/error.json +0 -0
  67. /package/locales/{ja_JP → ja-JP}/market.json +0 -0
  68. /package/locales/{ja_JP → ja-JP}/migration.json +0 -0
  69. /package/locales/{ja_JP → ja-JP}/plugin.json +0 -0
  70. /package/locales/{ja_JP → ja-JP}/setting.json +0 -0
  71. /package/locales/{ja_JP → ja-JP}/welcome.json +0 -0
  72. /package/locales/{ko_KR → ko-KR}/chat.json +0 -0
  73. /package/locales/{ko_KR → ko-KR}/common.json +0 -0
  74. /package/locales/{ko_KR → ko-KR}/empty.json +0 -0
  75. /package/locales/{ko_KR → ko-KR}/error.json +0 -0
  76. /package/locales/{ko_KR → ko-KR}/market.json +0 -0
  77. /package/locales/{ko_KR → ko-KR}/migration.json +0 -0
  78. /package/locales/{ko_KR → ko-KR}/plugin.json +0 -0
  79. /package/locales/{ko_KR → ko-KR}/setting.json +0 -0
  80. /package/locales/{ko_KR → ko-KR}/welcome.json +0 -0
  81. /package/locales/{pt_BR → pt-BR}/chat.json +0 -0
  82. /package/locales/{pt_BR → pt-BR}/common.json +0 -0
  83. /package/locales/{pt_BR → pt-BR}/empty.json +0 -0
  84. /package/locales/{pt_BR → pt-BR}/error.json +0 -0
  85. /package/locales/{pt_BR → pt-BR}/market.json +0 -0
  86. /package/locales/{pt_BR → pt-BR}/migration.json +0 -0
  87. /package/locales/{pt_BR → pt-BR}/plugin.json +0 -0
  88. /package/locales/{pt_BR → pt-BR}/setting.json +0 -0
  89. /package/locales/{pt_BR → pt-BR}/welcome.json +0 -0
  90. /package/locales/{ru_RU → ru-RU}/chat.json +0 -0
  91. /package/locales/{ru_RU → ru-RU}/common.json +0 -0
  92. /package/locales/{ru_RU → ru-RU}/empty.json +0 -0
  93. /package/locales/{ru_RU → ru-RU}/error.json +0 -0
  94. /package/locales/{ru_RU → ru-RU}/market.json +0 -0
  95. /package/locales/{ru_RU → ru-RU}/migration.json +0 -0
  96. /package/locales/{ru_RU → ru-RU}/plugin.json +0 -0
  97. /package/locales/{ru_RU → ru-RU}/welcome.json +0 -0
  98. /package/locales/{tr_TR → tr-TR}/chat.json +0 -0
  99. /package/locales/{tr_TR → tr-TR}/common.json +0 -0
  100. /package/locales/{tr_TR → tr-TR}/empty.json +0 -0
  101. /package/locales/{tr_TR → tr-TR}/error.json +0 -0
  102. /package/locales/{tr_TR → tr-TR}/market.json +0 -0
  103. /package/locales/{tr_TR → tr-TR}/migration.json +0 -0
  104. /package/locales/{tr_TR → tr-TR}/plugin.json +0 -0
  105. /package/locales/{tr_TR → tr-TR}/setting.json +0 -0
  106. /package/locales/{tr_TR → tr-TR}/welcome.json +0 -0
  107. /package/locales/{zh_CN → zh-CN}/chat.json +0 -0
  108. /package/locales/{zh_CN → zh-CN}/common.json +0 -0
  109. /package/locales/{zh_CN → zh-CN}/empty.json +0 -0
  110. /package/locales/{zh_CN → zh-CN}/error.json +0 -0
  111. /package/locales/{zh_CN → zh-CN}/market.json +0 -0
  112. /package/locales/{zh_CN → zh-CN}/migration.json +0 -0
  113. /package/locales/{zh_CN → zh-CN}/plugin.json +0 -0
  114. /package/locales/{zh_CN → zh-CN}/setting.json +0 -0
  115. /package/locales/{zh_CN → zh-CN}/welcome.json +0 -0
  116. /package/locales/{zh_TW → zh-TW}/chat.json +0 -0
  117. /package/locales/{zh_TW → zh-TW}/common.json +0 -0
  118. /package/locales/{zh_TW → zh-TW}/empty.json +0 -0
  119. /package/locales/{zh_TW → zh-TW}/error.json +0 -0
  120. /package/locales/{zh_TW → zh-TW}/market.json +0 -0
  121. /package/locales/{zh_TW → zh-TW}/migration.json +0 -0
  122. /package/locales/{zh_TW → zh-TW}/plugin.json +0 -0
  123. /package/locales/{zh_TW → zh-TW}/setting.json +0 -0
  124. /package/locales/{zh_TW → zh-TW}/welcome.json +0 -0
package/.i18nrc.js CHANGED
@@ -1,20 +1,20 @@
1
1
  const { defineConfig } = require('@lobehub/i18n-cli');
2
2
 
3
3
  module.exports = defineConfig({
4
- entry: 'locales/zh_CN',
5
- entryLocale: 'zh_CN',
4
+ entry: 'locales/zh-CN',
5
+ entryLocale: 'zh-CN',
6
6
  output: 'locales',
7
7
  outputLocales: [
8
- 'zh_TW',
9
- 'en_US',
10
- 'ru_RU',
11
- 'ja_JP',
12
- 'ko_KR',
13
- 'fr_FR',
14
- 'tr_TR',
15
- 'es_ES',
16
- 'pt_BR',
17
- 'de_DE',
8
+ 'zh-TW',
9
+ 'en-US',
10
+ 'ru-RU',
11
+ 'ja-JP',
12
+ 'ko-KR',
13
+ 'fr-FR',
14
+ 'tr-TR',
15
+ 'es-ES',
16
+ 'pt-BR',
17
+ 'de-DE',
18
18
  ],
19
19
  temperature: 0,
20
20
  modelName: 'gpt-3.5-turbo-1106',
package/CHANGELOG.md CHANGED
@@ -2,6 +2,23 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 0.114.8](https://github.com/lobehub/lobe-chat/compare/v0.114.7...v0.114.8)
6
+
7
+ <sup>Released on **2023-12-22**</sup>
8
+
9
+ <br/>
10
+
11
+ <details>
12
+ <summary><kbd>Improvements and Fixes</kbd></summary>
13
+
14
+ </details>
15
+
16
+ <div align="right">
17
+
18
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
19
+
20
+ </div>
21
+
5
22
  ### [Version 0.114.7](https://github.com/lobehub/lobe-chat/compare/v0.114.6...v0.114.7)
6
23
 
7
24
  <sup>Released on **2023-12-22**</sup>
@@ -303,4 +303,4 @@
303
303
  },
304
304
  "title": "Дополнительные инструменты"
305
305
  }
306
- }
306
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "0.114.7",
3
+ "version": "0.114.8",
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
  };
@@ -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;
@@ -54,12 +54,4 @@ export const localeOptions: LocaleOptions = [
54
54
  },
55
55
  ] as LocaleOptions;
56
56
 
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);
57
+ 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
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
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
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
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
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
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
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
File without changes
File without changes