diff --git a/src/context/LanguageContext.tsx b/src/context/LanguageContext.tsx index 80fad10b..9c22186d 100644 --- a/src/context/LanguageContext.tsx +++ b/src/context/LanguageContext.tsx @@ -15,9 +15,11 @@ export type AvailableLocale = | 'hr' | 'hu' | 'it' + | 'id' | 'ja' | 'ko' | 'lt' + | 'mi' | 'nb-NO' | 'nl' | 'pl' @@ -27,6 +29,7 @@ export type AvailableLocale = | 'sq' | 'sr' | 'sv' + | 'tr' | 'uk' | 'zh-CN' | 'zh-TW'; @@ -89,6 +92,10 @@ export const availableLanguages: AvailableLanguageObject = { code: 'hu', display: 'Magyar', }, + mi: { + code: 'mi', + display: 'Maori', + }, nl: { code: 'nl', display: 'Nederlands', @@ -141,6 +148,14 @@ export const availableLanguages: AvailableLanguageObject = { code: 'ko', display: '한국어', }, + id: { + code: 'id', + display: 'Indonesian', + }, + tr: { + code: 'tr', + display: 'Turkish', + }, uk: { code: 'uk', display: 'Ukrainian', diff --git a/src/i18n/locale/id.json b/src/i18n/locale/id.json new file mode 100644 index 00000000..0967ef42 --- /dev/null +++ b/src/i18n/locale/id.json @@ -0,0 +1 @@ +{} diff --git a/src/i18n/locale/mi.json b/src/i18n/locale/mi.json new file mode 100644 index 00000000..0967ef42 --- /dev/null +++ b/src/i18n/locale/mi.json @@ -0,0 +1 @@ +{} diff --git a/src/i18n/locale/tr.json b/src/i18n/locale/tr.json new file mode 100644 index 00000000..0967ef42 --- /dev/null +++ b/src/i18n/locale/tr.json @@ -0,0 +1 @@ +{} diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 59c98e19..6bb651bd 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -52,12 +52,16 @@ const loadLocaleData = (locale: AvailableLocale): Promise => { return import('../i18n/locale/hu.json'); case 'it': return import('../i18n/locale/it.json'); + case 'id': + return import('../i18n/locale/id.json'); case 'ja': return import('../i18n/locale/ja.json'); case 'ko': return import('../i18n/locale/ko.json'); case 'lt': return import('../i18n/locale/lt.json'); + case 'mi': + return import('../i18n/locale/mi.json'); case 'nb-NO': return import('../i18n/locale/nb_NO.json'); case 'nl': @@ -78,6 +82,8 @@ const loadLocaleData = (locale: AvailableLocale): Promise => { return import('../i18n/locale/sv.json'); case 'uk': return import('../i18n/locale/uk.json'); + case 'tr': + return import('../i18n/locale/tr.json'); case 'zh-CN': return import('../i18n/locale/zh_Hans.json'); case 'zh-TW':