Skip to content
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(module:theme): adding Polish locale #308

Merged
merged 2 commits into from
Dec 15, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/schematics/core/lang.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
uded marked this conversation as resolved.
Show resolved Hide resolved
];

export function getLangConfig(lang: string): any {
Expand Down
1 change: 1 addition & 0 deletions packages/schematics/docs/plugin.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions packages/schematics/docs/plugin.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions packages/theme/docs/locale.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions packages/theme/docs/locale.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ switchLanguage() {
| 简体中文 | zh_CN |
| 繁体中文 | zh_TW |
| 土耳其语 | tr_TR |
| 波兰语 | pl_PL |

## 增加语言包

Expand Down
40 changes: 40 additions & 0 deletions packages/theme/src/locale/languages/pl-PL.ts
Original file line number Diff line number Diff line change
@@ -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;
1 change: 1 addition & 0 deletions packages/theme/src/locale/public_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';