Add Turkish localization

This commit is contained in:
Michael Shamoon 2022-03-26 13:52:15 -07:00
parent cae4d3fae3
commit 534c157809
4 changed files with 10 additions and 0 deletions

View File

@ -33,6 +33,7 @@
"sl-SI": "src/locale/messages.sl_SI.xlf",
"sr-CS": "src/locale/messages.sr_CS.xlf",
"sv-SE": "src/locale/messages.sv_SE.xlf",
"tr-TR": "src/locale/messages.tr_TR.xlf",
"zh-CN": "src/locale/messages.zh_CN.xlf"
}
},

View File

@ -85,6 +85,7 @@ import localeRu from '@angular/common/locales/ru'
import localeSl from '@angular/common/locales/sl'
import localeSr from '@angular/common/locales/sr'
import localeSv from '@angular/common/locales/sv'
import localeTr from '@angular/common/locales/tr'
import localeZh from '@angular/common/locales/zh'
registerLocaleData(localeCs)
@ -104,6 +105,7 @@ registerLocaleData(localeRu)
registerLocaleData(localeSl)
registerLocaleData(localeSr)
registerLocaleData(localeSv)
registerLocaleData(localeTr)
registerLocaleData(localeZh)
@NgModule({

View File

@ -270,6 +270,12 @@ export class SettingsService {
englishName: 'Swedish',
dateInputFormat: 'yyyy-mm-dd',
},
{
code: 'tr-tr',
name: $localize`Turkish`,
englishName: 'Turkish',
dateInputFormat: 'yyyy-mm-dd',
},
{
code: 'zh-cn',
name: $localize`Chinese Simplified`,

View File

@ -316,6 +316,7 @@ LANGUAGES = [
("sl-si", _("Slovenian")),
("sr-cs", _("Serbian")),
("sv-se", _("Swedish")),
("tr-tr", _("Turkish")),
("zh-cn", _("Chinese Simplified")),
]