-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: stub i18next for YesNo, Email fields
- Loading branch information
Showing
23 changed files
with
162 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { msSG as sidebar } from './sidebar' | ||
|
||
export const msSG = { | ||
sidebar, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
frontend/src/i18n/locales/features/admin-form/sidebar/fields/ms-sg.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { DeepPartial } from 'ts-essentials' | ||
|
||
import { Fields } from '.' | ||
|
||
export const msSG: DeepPartial<Fields> = { | ||
yesNo: { | ||
yes: 'Ya', | ||
no: 'Tidak', | ||
}, | ||
email: { | ||
validation: { | ||
domainDisallowed: | ||
'E-mel yang dimasukkan bukan milik domain e-mel yang dibenarkan', | ||
}, | ||
}, | ||
} |
16 changes: 16 additions & 0 deletions
16
frontend/src/i18n/locales/features/admin-form/sidebar/fields/ta-sg.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { DeepPartial } from 'ts-essentials' | ||
|
||
import { Fields } from '.' | ||
|
||
export const taSG: DeepPartial<Fields> = { | ||
yesNo: { | ||
yes: 'ஆம்', | ||
no: 'இல்லை', | ||
}, | ||
email: { | ||
validation: { | ||
domainDisallowed: | ||
'உள்ளிடப்பட்ட மின்னஞ்சல் அனுமதிக்கப்பட்ட மின்னஞ்சலுக்குச் சொந்தமானதல்ல', | ||
}, | ||
}, | ||
} |
15 changes: 15 additions & 0 deletions
15
frontend/src/i18n/locales/features/admin-form/sidebar/fields/zh-sg.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { DeepPartial } from 'ts-essentials' | ||
|
||
import { Fields } from '.' | ||
|
||
export const zhSG: DeepPartial<Fields> = { | ||
yesNo: { | ||
yes: '是', | ||
no: '否', | ||
}, | ||
email: { | ||
validation: { | ||
domainDisallowed: '输入的电子邮箱不在允许域名之列', | ||
}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
frontend/src/i18n/locales/features/admin-form/sidebar/ms-sg.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { msSG as fields } from './fields' | ||
|
||
export const msSG = { | ||
fields, | ||
} |
5 changes: 5 additions & 0 deletions
5
frontend/src/i18n/locales/features/admin-form/sidebar/ta-sg.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { taSG as fields } from './fields' | ||
|
||
export const taSG = { | ||
fields, | ||
} |
5 changes: 5 additions & 0 deletions
5
frontend/src/i18n/locales/features/admin-form/sidebar/zh-sg.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { zhSG as fields } from './fields' | ||
|
||
export const zhSG = { | ||
fields, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { taSG as sidebar } from './sidebar' | ||
|
||
export const taSG = { | ||
sidebar, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { zhSG as sidebar } from './sidebar' | ||
|
||
export const zhSG = { | ||
sidebar, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
import { ResourceLanguage } from 'i18next' | ||
|
||
import { Language } from '~shared/types' | ||
|
||
import { enSG } from './en-sg' | ||
import { msSG } from './ms-sg' | ||
import { taSG } from './ta-sg' | ||
import { zhSG } from './zh-sg' | ||
|
||
export const locales = { | ||
'en-SG': enSG as unknown as ResourceLanguage, | ||
'zh-SG': zhSG as unknown as ResourceLanguage, | ||
[Language.ENGLISH]: enSG as unknown as ResourceLanguage, | ||
[Language.CHINESE]: zhSG as unknown as ResourceLanguage, | ||
[Language.MALAY]: msSG as unknown as ResourceLanguage, | ||
[Language.TAMIL]: taSG as unknown as ResourceLanguage, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { PartialDeep } from 'type-fest' | ||
|
||
import { msSG as adminForm } from './features/admin-form' | ||
import Translation from './types' | ||
|
||
export const msSG: PartialDeep<Translation> = { | ||
translation: { | ||
features: { | ||
adminForm, | ||
}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { PartialDeep } from 'type-fest' | ||
|
||
import { taSG as adminForm } from './features/admin-form' | ||
import Translation from './types' | ||
|
||
export const taSG: PartialDeep<Translation> = { | ||
translation: { | ||
features: { | ||
adminForm, | ||
}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.