Move to smartling for translation services
This commit is contained in:
parent
620067342a
commit
5957c111cf
73 changed files with 1394 additions and 64465 deletions
|
@ -42,7 +42,7 @@ export function format(
|
|||
|
||||
// locale strings coming from electron use a dash as separator
|
||||
// but humanizeDuration uses an underscore
|
||||
const locale: string = i18n.getLocale().replace('-', '_');
|
||||
const locale: string = i18n.getLocale().replace(/-/g, '_');
|
||||
|
||||
const localeWithoutRegion: string = locale.split('_', 1)[0];
|
||||
const fallbacks: Array<string> = [];
|
||||
|
@ -56,6 +56,11 @@ export function format(
|
|||
fallbacks.push('en');
|
||||
}
|
||||
|
||||
// humanizeDuration only supports zh_CN and zh_TW
|
||||
if (locale === 'zh_HK') {
|
||||
fallbacks.push('zh_TW');
|
||||
}
|
||||
|
||||
const allUnits: Array<Unit> = ['y', 'mo', 'w', 'd', 'h', 'm', 's'];
|
||||
|
||||
const defaultUnits: Array<Unit> =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue