From f199789469d0b6c5610c9ddaea6f2f3fcbe963de Mon Sep 17 00:00:00 2001 From: Lei Nelissen Date: Mon, 19 Jun 2023 22:30:02 +0200 Subject: [PATCH] fix: add getters for new locales --- src/localisation/index.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/localisation/index.ts b/src/localisation/index.ts index 91d8cf5..f2236e1 100644 --- a/src/localisation/index.ts +++ b/src/localisation/index.ts @@ -5,11 +5,14 @@ import { LocaleKeys } from './types'; // Lazy loaders for locale const localeGetters: Record object> = { en: () => require('./lang/en/locale.json'), - fr: () => require('./lang/fr/locale.json'), - nl: () => require('./lang/nl/locale.json'), es: () => require('./lang/es/locale.json'), - zh: () => require('./lang/zh/locale.json'), + fr: () => require('./lang/fr/locale.json'), ja: () => require('./lang/ja/locale.json'), + nb_NO: () => require('./lang/nb_NO/locale.json'), + nl: () => require('./lang/nl/locale.json'), + pl: () => require('./lang/pl/locale.json'), + uk: () => require('./lang/uk/locale.json'), + zh: () => require('./lang/zh/locale.json'), }; // Have RNLocalize pick the best locale from the languages on offer