Skip to content

Commit

Permalink
feat: add sl_SI locale (#996)
Browse files Browse the repository at this point in the history
Co-authored-by: George Alexiou <galexiou@f-in.co.uk>
  • Loading branch information
goten002 and George Alexiou committed Jul 11, 2020
1 parent 8f879c8 commit 63073bc
Show file tree
Hide file tree
Showing 7 changed files with 84 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/schematics/core/lang.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const LANGS_CONFIG = [
{ langs: ['ko'], zorro: 'ko_KR', delon: 'ko_KR', fileName: 'ko-KR.json' },
{ langs: ['hr'], zorro: 'hr_HR', delon: 'hr_HR', fileName: 'hr-HR.json' },
{ langs: ['ja'], zorro: 'ja_JP', delon: 'ja_JP' },
{ langs: ['sl'], zorro: 'sl_SI', delon: 'sl_SI', fileName: 'sl-SI.json' },
];

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 @@ -110,6 +110,7 @@ ng g ng-alain:plugin defaultLanguage --defaultLanguage=zh-tw
| Greek | el | el | el_GR | el_GR |
| Korean | ko | ko | ko_KR | ko_KR |
| Croatian | hr | hr | hr_HR | hr_HR |
| Slovenian | sl | sl | sl_SI | sl_SI |

### 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 @@ -112,6 +112,7 @@ ng g ng-alain:plugin defaultLanguage --defaultLanguage=zh-tw
| 希腊语 | el | el | el_GR | el_GR |
| 朝鲜语 | ko | ko | ko_KR | ko_KR |
| 克罗地亚 | hr | hr | hr_HR | hr_HR |
| 斯洛文尼亚文 | sl | sl | sl_SI | sl_SI |

### 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 @@ -51,6 +51,7 @@ Note: `en_US` is the package name, follow below.
| Korean | ko_KR |
| Croatian | hr_HR |
| Japanese | ja_JP |
| Slovenian | sl_SI |

## 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 @@ -51,6 +51,7 @@ switchLanguage() {
| 朝鲜语 | ko_KR |
| 克罗地亚 | hr_HR |
| 日语 | ja_JP |
| 斯洛文尼亚文 | sl_SI |

## 增加语言包

Expand Down
78 changes: 78 additions & 0 deletions packages/theme/src/locale/languages/sl-SI.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
import { FullLocaleData } from '../locale.types';

export default {
abbr: 'sl-SI',
exception: {
403: `Žal nimate dostopa do te strani`,
404: `Žal stran, ki ste jo obiskali, ne obstaja`,
500: `Žal strežnik poroča o napaki`,
backToHome: 'Nazaj domov',
},
noticeIcon: {
emptyText: 'Ni podatkov',
clearText: 'Počisti',
},
reuseTab: {
close: 'Zapri zavihek',
closeOther: 'Zaprite druge zavihke',
closeRight: 'Zaprite zavihke na desni',
clear: 'Počisti zavihke',
},
tagSelect: {
expand: 'Razširi',
collapse: 'Strni',
},
miniProgress: {
target: 'Cilj: ',
},
st: {
total: '{{range[0]}} - {{range[1]}} of {{total}}',
filterConfirm: 'OK',
filterReset: 'Reset',
},
sf: {
submit: 'Pošlji',
reset: 'Reset',
search: 'Išči',
edit: 'Shrani',
addText: 'Dodaj',
removeText: 'Odstrani',
checkAllText: 'Preveri vse',
error: {
'false schema': `Boolova shema je napačna`,
$ref: `Referenc ni mogoče razrešiti {ref}`,
additionalItems: `Ne sme imeti več kot {limit} artiklov`,
additionalProperties: `Ne bi smel imeti dodatnih lastnosti`,
anyOf: `Se mora ujemati s shemo v "anyOf"`,
dependencies: `mora imeti lastnosti {deps} ko je artikel {property} prisoten`,
enum: `Mora biti enaka eni od vnaprej določenih vrednosti`,
format: `Naj ustreza formatu "{format}"`,
type: `Naj bo {type}`,
required: `Zahtevano`,
maxLength: `Ne sme biti daljši od {limit} znakov`,
minLength: `Ne sme biti krajši od {limit} znakov`,
minimum: `Naj bo {comparison} {limit}`,
formatMinimum: `Naj bo {comparison} {limit}`,
maximum: `Naj bo {comparison} {limit}`,
formatMaximum: `Naj bo {comparison} {limit}`,
maxItems: `Ne sme imeti več kot {limit} artiklov`,
minItems: `Ne sme imeti manj kot {limit} artiklov`,
maxProperties: `Ne sme imeti več kot {limit} lastnosti`,
minProperties: `Ne sme imeti manj kot {limit} lastnosti`,
multipleOf: `Mora biti večkratnik od {multipleOf}`,
not: `Ne sme biti veljaven po shemi v "not"`,
oneOf: `Naj ustreza natančno eni shemi v "oneOf"`,
pattern: `Naj se ujema z vzorcem "{pattern}"`,
uniqueItems: `Ne bi smel imeti dvojnikov (items ## {j} in {i} so identični)`,
custom: `Naj ustreza formatu`,
propertyNames: `Ime artikla "{propertyName}" je neveljavno`,
patternRequired: `Mora imeti vzorec ujemanja lastnosti "{missingPattern}"`,
switch: `Mora prestati "switch" validacijo ključne besede, primer {caseIndex} ne uspe`,
const: `Naj bo enako konstanti`,
contains: `Naj vsebuje veljaven artikel`,
formatExclusiveMaximum: `formatExclusiveMaximum naj bo boolean`,
formatExclusiveMinimum: `formatExclusiveMinimum naj bo boolean`,
if: `Naj se ujema s shemo "{failingKeyword}"`,
},
},
} as FullLocaleData;
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 @@ -12,3 +12,4 @@ export { default as el_GR } from './languages/el-GR';
export { default as ko_KR } from './languages/ko-KR';
export { default as hr_HR } from './languages/hr-HR';
export { default as ja_JP } from './languages/ja-JP';
export { default as sl_SI } from './languages/sl-SI';

0 comments on commit 63073bc

Please sign in to comment.