diff --git a/packages/schematics/core/lang.config.ts b/packages/schematics/core/lang.config.ts index ed862a064..36dd19357 100644 --- a/packages/schematics/core/lang.config.ts +++ b/packages/schematics/core/lang.config.ts @@ -16,6 +16,7 @@ export const LANGS_CONFIG = [ }, { langs: ['en'], zorro: 'en_US', delon: 'en_US', fileName: 'en-US.json' }, { langs: ['tr'], zorro: 'tr_TR', delon: 'tr_TR', fileName: 'tr-TR.json' }, + { langs: ['pl'], zorro: 'pl_PL', delon: 'pl_PL', fileName: 'pl-PL.json' }, ]; export function getLangConfig(lang: string): any { diff --git a/packages/schematics/docs/plugin.en-US.md b/packages/schematics/docs/plugin.en-US.md index 2a6be1185..a20bae68b 100644 --- a/packages/schematics/docs/plugin.en-US.md +++ b/packages/schematics/docs/plugin.en-US.md @@ -104,6 +104,7 @@ ng g ng-alain:plugin defaultLanguage --defaultLanguage=zh-tw | Traditional Chinese | zh-Hant,zh-tw,zh-Hant-TW | zh-Hant,zh-tw,zh-Hant-TW | zh_TW | zh_TW | | English (American) | en | en | en_US | en_US | | Turkish | tr | tr | tr_TR | tr_TR | +| Polish | pl | pl | pl_PL | pl_PL | ### networkEnv diff --git a/packages/schematics/docs/plugin.zh-CN.md b/packages/schematics/docs/plugin.zh-CN.md index 12cf75c16..774760c77 100644 --- a/packages/schematics/docs/plugin.zh-CN.md +++ b/packages/schematics/docs/plugin.zh-CN.md @@ -108,6 +108,7 @@ ng g ng-alain:plugin defaultLanguage --defaultLanguage=zh-tw | 繁体中文 | zh-Hant,zh-tw,zh-Hant-TW | zh-Hant,zh-tw,zh-Hant-TW | zh_TW | zh_TW | | 英语(美式) | en | en | en_US | en_US | | 土耳其语 | tr | tr | tr_TR | tr_TR | +| 波兰语 | pl | pl | pl_PL | pl_PL | ### networkEnv diff --git a/packages/theme/docs/locale.en-US.md b/packages/theme/docs/locale.en-US.md index aeabaaa39..161164a30 100644 --- a/packages/theme/docs/locale.en-US.md +++ b/packages/theme/docs/locale.en-US.md @@ -46,6 +46,7 @@ Note: `en_US` is the package name, follow below. | Chinese (Simplified) | zh_CN | | Chinese (Traditional) | zh_TW | | Turkish | tr_TR | +| Polish | pl_PL | ## Add a new language diff --git a/packages/theme/docs/locale.zh-CN.md b/packages/theme/docs/locale.zh-CN.md index 501b1f5af..85d3d4bfd 100644 --- a/packages/theme/docs/locale.zh-CN.md +++ b/packages/theme/docs/locale.zh-CN.md @@ -46,6 +46,7 @@ switchLanguage() { | 简体中文 | zh_CN | | 繁体中文 | zh_TW | | 土耳其语 | tr_TR | +| 波兰语 | pl_PL | ## 增加语言包 diff --git a/packages/theme/src/locale/languages/pl-PL.ts b/packages/theme/src/locale/languages/pl-PL.ts new file mode 100644 index 000000000..d33186d27 --- /dev/null +++ b/packages/theme/src/locale/languages/pl-PL.ts @@ -0,0 +1,40 @@ +import { LocaleData } from '../locale.types'; + +export default { + abbr: 'en-US', + exception: { + 403: `Niestety, nie masz uprawnień do tej strony`, + 404: `Niestety, ta strona nie istnieje`, + 500: `Niestety, błąd serwera`, + backToHome: 'Powróć do strony głównej', + }, + noticeIcon: { + emptyText: 'Brak danych', + clearText: 'Wyczyść', + }, + reuseTab: { + close: 'Zamknij kartę', + closeOther: 'Zamknij inne karty', + closeRight: 'Zamknij karty po prawej', + clear: 'Wyczyść karty', + }, + tagSelect: { + expand: 'Rozszerz', + collapse: 'Zmniejsz', + }, + miniProgress: { + target: 'Cel: ', + }, + st: { + total: '{{range[0]}} - {{range[1]}} z {{total}}', + }, + sf: { + submit: 'Wyślij', + reset: 'Resetuj', + search: 'Szukaj', + edit: 'Zapisz', + addText: 'Dodaj', + removeText: 'Usuń', + checkAllText: 'Zaznacz wszystkie', + }, +} as LocaleData; diff --git a/packages/theme/src/locale/public_api.ts b/packages/theme/src/locale/public_api.ts index 95b4c08d6..0c5657628 100644 --- a/packages/theme/src/locale/public_api.ts +++ b/packages/theme/src/locale/public_api.ts @@ -7,3 +7,4 @@ export { default as en_US } from './languages/en-US'; export { default as zh_CN } from './languages/zh-CN'; export { default as zh_TW } from './languages/zh-TW'; export { default as tr_TR } from './languages/tr-TR'; +export { default as pl_PL } from './languages/pl-PL';