diff --git a/src/i18n/de/_all.ts b/src/i18n/de/_all.ts new file mode 100644 index 00000000..fa81be2e --- /dev/null +++ b/src/i18n/de/_all.ts @@ -0,0 +1,17 @@ +export default { + common: require('./common'), + + screens: require('./screens'), + screenActions: require('./screens/actions'), + screenAnnouncements: require('./screens/announcements'), + screenCompose: require('./screens/compose'), + screenImageViewer: require('./screens/imageViewer'), + screenTabs: require('./screens/tabs'), + + componentEmojis: require('./components/emojis'), + componentInstance: require('./components/instance'), + componentMediaSelector: require('./components/mediaSelector'), + componentParse: require('./components/parse'), + componentRelationship: require('./components/relationship'), + componentTimeline: require('./components/timeline') +} diff --git a/src/i18n/i18n.ts b/src/i18n/i18n.ts index 0199f4f2..7c9fd51b 100644 --- a/src/i18n/i18n.ts +++ b/src/i18n/i18n.ts @@ -1,6 +1,7 @@ import i18n from 'i18next' import { initReactI18next } from 'react-i18next' +import de from '@root/i18n/de/_all' import en from '@root/i18n/en/_all' import ko from '@root/i18n/ko/_all' import vi from '@root/i18n/vi/_all' @@ -13,7 +14,8 @@ i18n.use(initReactI18next).init({ ns: ['common'], defaultNS: 'common', - resources: { 'zh-Hans': zh_Hans, vi, ko, en }, + resources: { 'zh-Hans': zh_Hans, vi, ko, en, de }, + returnEmptyString: false, saveMissing: true, missingKeyHandler: (ns, key) => { diff --git a/src/i18n/locales.ts b/src/i18n/locales.ts index 593b400a..ade8d606 100644 --- a/src/i18n/locales.ts +++ b/src/i18n/locales.ts @@ -1,4 +1,5 @@ const LOCALES = { + de: 'Deutsch', en: 'English', ko: '한국어', vi: 'Tiếng Việt',