2022-06-27 11:55:28 +08:00
|
|
|
import { NormalizeKeyPaths } from '@silverhand/essentials';
|
|
|
|
|
|
|
|
import en from './locales/en';
|
2022-08-14 14:36:10 +02:00
|
|
|
import fr from './locales/fr';
|
2022-07-30 23:48:50 +09:00
|
|
|
import koKR from './locales/ko-kr';
|
2022-09-02 00:23:54 +01:00
|
|
|
import ptPT from './locales/pt-pt';
|
2022-07-30 16:48:45 +03:00
|
|
|
import trTR from './locales/tr-tr';
|
2022-06-27 11:55:28 +08:00
|
|
|
import zhCN from './locales/zh-cn';
|
2022-09-23 15:44:45 +08:00
|
|
|
import { Resource, Translation } from './types';
|
2022-06-27 11:55:28 +08:00
|
|
|
|
2022-09-23 15:44:45 +08:00
|
|
|
export * from './types';
|
2022-06-27 11:55:28 +08:00
|
|
|
|
2022-09-23 15:44:45 +08:00
|
|
|
export type I18nKey = NormalizeKeyPaths<Translation>;
|
2022-06-27 11:55:28 +08:00
|
|
|
|
|
|
|
const resource: Resource = {
|
2022-08-30 16:53:49 +08:00
|
|
|
en,
|
|
|
|
fr,
|
2022-09-02 00:23:54 +01:00
|
|
|
'pt-PT': ptPT,
|
2022-08-30 16:53:49 +08:00
|
|
|
'zh-CN': zhCN,
|
|
|
|
'ko-KR': koKR,
|
|
|
|
'tr-TR': trTR,
|
2022-06-27 11:55:28 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
export default resource;
|