From 2c79bf22df0894a61e73a294f875967a9957c6be Mon Sep 17 00:00:00 2001 From: kakandavorever <70788217+kmmaniez@users.noreply.github.com> Date: Thu, 30 Mar 2023 13:47:57 +0700 Subject: [PATCH] Add support for indonesia language (id_ID) (#94) * Add support for indonesia language (id_ID) --- src/i18n/id_ID.json | 7 +++++++ src/i18n/index.ts | 4 ++++ 2 files changed, 11 insertions(+) create mode 100644 src/i18n/id_ID.json diff --git a/src/i18n/id_ID.json b/src/i18n/id_ID.json new file mode 100644 index 0000000..6a765b7 --- /dev/null +++ b/src/i18n/id_ID.json @@ -0,0 +1,7 @@ +{ + "localLanguage": "bahasa", + "commitFix": "fix(server.ts): mengubah huruf port variable dari huruf kecil ke huruf besar PORT", + "commitFeat": "feat(server.ts): menambahkan support di process.env.PORT environment variabel", + "commitDescriptions": + "Port variabel bernama PORT, yang membantu konsistensi dengan memberi nama yaitu PORT yang konstan. Bantuan environment variabel membantu aplikasi lebih fleksibel, dan dapat di jalankan di port manapun yang tertulis pada process.env.PORT" +} \ No newline at end of file diff --git a/src/i18n/index.ts b/src/i18n/index.ts index 4653562..b1f14d1 100644 --- a/src/i18n/index.ts +++ b/src/i18n/index.ts @@ -12,6 +12,7 @@ import es_ES from '../i18n/es_ES.json' assert { type: 'json' }; import sv from '../i18n/sv.json' assert { type: 'json' }; import nl from '../i18n/nl.json' assert { type: 'json' }; import ru from '../i18n/ru.json' assert { type: 'json' }; +import id_ID from '../i18n/id_ID.json' assert { type: 'json'}; export enum I18nLocals { 'en' = 'en', @@ -27,6 +28,7 @@ export enum I18nLocals { 'es_ES' = 'es_ES', 'sv' = 'sv', 'ru' = 'ru', + 'id_ID' = 'id_ID', }; export const i18n = { @@ -42,6 +44,7 @@ export const i18n = { vi_VN, es_ES, sv, + id_ID, nl, ru }; @@ -61,6 +64,7 @@ export const I18N_CONFIG_ALIAS: { [key: string]: string[] } = { es_ES: ['es_ES', 'Spanish', 'español'], sv: ['sv', 'Swedish', 'Svenska'], ru: ['ru', 'Russian', 'русский'], + id_ID: ['id_ID', 'Bahasa', 'bahasa'], }; export function getI18nLocal(value: string): string | boolean {