-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add model fields to represent translations for form fields #7457
feat: add model fields to represent translations for form fields #7457
Conversation
shared/types/form/form.ts
Outdated
@@ -60,12 +73,24 @@ export enum FormAuthType { | |||
SGID_MyInfo = 'SGID_MyInfo', | |||
} | |||
|
|||
export enum Language { | |||
ENGLISH = 'English', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Recommend to use unicode locales for the values since we might be supporting localization for other countries.
ENGLISH = 'en-SG',
CHINESE = 'zh-SG',
MALAY = 'ms-SG',
TAMIL = 'ta-SG',
^ opting to stick to the simpler "ISO 639 two-letter language codes and ISO 3166 two-letter country codes".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
* feat: add fields in model to represent translations for form fields * feat: add shared types to represent form field translations * fix: use unicode locales
* feat: add fields in model to represent translations for form fields * feat: add shared types to represent form field translations * fix: use unicode locales
* feat: add fields in model to represent translations for form fields * feat: add shared types to represent form field translations * fix: use unicode locales
* feat: add fields in model to represent translations for form fields * feat: add shared types to represent form field translations * fix: use unicode locales
Context
Changes
TranslationMapping
which represents the translations for the specific languagetitleTranslations
anddescriptionTranslations
forbaseField
typeparagraphTranslations
forstartPage
typefieldOptionsTranslations
forCheckboxFieldSchema
,RadioFieldSchema
andDropdownFieldSchema