Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(time-picker,input-time-picker): add built-in translations support (
#5416) * feat: add built-in translations * add bundles * remove obsolete folder * add type generator * rename type's file * delete non-t9n file * commit lock file * rename type generating script and tidy up * regenerate interface files * update color-picker file * add missing value-list entries * inline common strings until we have common bundle wired up * revert unnecessary tsconfig changes * update interface files * add util to fetchbundles and supported locale * feedback changes * more cleanup * remove intl default value validation in e2e * sync en.json with en-US.json bundle * rename script * refactor script file * remove console.log * refactor & add back types to intl props in colorpicker * add util method for string over rides * tidy up * simplify t9n pattern * fix issue caused by type + interface TS shape confusion * support nb&no for norwegian locale * add cache for stringBundle fetch * tidy up * drop intl from string bundle keys * update scripts to use messages as string bundle name * rename bundles * rename interface props * add t9ntest util methods * restore intlProp watching to pattern * use extended mutation observer to simplify unobserving * add intl prop watcher doc * add support for cascading lang * tidy up * update conventions doc with pattern info * update doc * drop and ignore generated d.ts files and tweak messages type names * wire up interface generation before build * merge w other * refactor localized components pattern * refactor t9n pattern to work w/ localized component * tidy up * fix utils depending on defined locale and not placeholder one * consolidate t9n tests and make intl prop merging happen at run time * Updated Pseudo i18n - @jian9413 * feat(time-picker,input-time-picker): add built-in translations support * ensure connectLocale happens before code that depends on locale * convert effectiveLocale to internla prop * cherry pick lang inheritance changes * update doc * tidy up * make lang lookup more robust * update doc * tidy up * fix test errors * add comments * remove intl resources * fix typo * clean up * forward intlProps Co-authored-by: JC Franco <[email protected]> Co-authored-by: Ben Elan <[email protected]> Co-authored-by: jona7150 <[email protected]>
- Loading branch information