Skip to content

Commit

Permalink
feat(module:i18n): add Slovenian support, ICU locale sl_SI, NG-ZORRO#…
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksander351 authored and vthinkxie committed Dec 19, 2018
1 parent fd857f8 commit cae3868
Show file tree
Hide file tree
Showing 6 changed files with 111 additions and 0 deletions.
27 changes: 27 additions & 0 deletions components/i18n/languages/calendar/sl_SI.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
export default {
today: 'Danes',
now: 'Zdaj',
backToToday: 'Nazaj na danes',
ok: 'V redu',
clear: 'Počisti',
month: 'Mesec',
year: 'Leto',
timeSelect: 'Izberi čas',
dateSelect: 'Izberi datum',
monthSelect: 'Izberi mesec',
yearSelect: 'Izberi leto',
decadeSelect: 'Izberi desetletje',
yearFormat: 'YYYY',
dateFormat: 'DD.MM.YYYY',
dayFormat: 'D',
dateTimeFormat: 'DD.MM.YYYY HH:mm:ss',
monthBeforeYear: true,
previousMonth: 'Predhodnji mesec (PageUp)',
nextMonth: 'Naslednji mesec (PageDown)',
previousYear: 'Prejšnje leto (Control + left)',
nextYear: 'Naslednje leto (Control + right)',
previousDecade: 'Prejšnje desetletje',
nextDecade: 'Naslednje desetletje',
previousCentury: 'Prejšnje stoletje',
nextCentury: 'Naslednje stoletje',
};
19 changes: 19 additions & 0 deletions components/i18n/languages/date-picker/sl_SI.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import CalendarLocale from '../calendar/sl_SI';
import TimePickerLocale from '../time-picker/sl_SI';

// Merge into a locale object
const locale = {
lang: {
placeholder: 'Izberite datum',
rangePlaceholder: ['Začetni datum', 'Končni datum'],
...CalendarLocale,
},
timePickerLocale: {
...TimePickerLocale,
},
};

// All settings at:
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json

export default locale;
15 changes: 15 additions & 0 deletions components/i18n/languages/pagination/sl_SI.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
export default {
// Options.jsx
items_per_page: '/ stran',
jump_to: 'Pojdi na',
jump_to_confirm: 'potrdi',
page: '',

// Pagination.jsx
prev_page: 'Prejšnja stran',
next_page: 'Naslednja stran',
prev_5: 'Prejšnjih 5 Strani',
next_5: 'Naslednjih 5 Strani',
prev_3: 'Prejšnje 3 Strani',
next_3: 'Naslednje 3 Strani',
};
44 changes: 44 additions & 0 deletions components/i18n/languages/sl_SI.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import Calendar from './calendar/sl_SI';
import DatePicker from './date-picker/sl_SI';
import Pagination from './pagination/sl_SI';
import TimePicker from './time-picker/sl_SI';

export default {
locale: 'sl',
Pagination,
DatePicker,
TimePicker,
Calendar,
Table: {
filterTitle: 'Filter',
filterConfirm: 'Potrdi',
filterReset: 'Ponastavi',
emptyText: 'Ni podataka',
selectAll: 'Izberi trenutno stran',
selectInvert: 'Obrni vrstni red izbora',
},
Modal: {
okText: 'V redu',
cancelText: 'Prekliči',
justOkText: 'V redu',
},
Popconfirm: {
okText: 'V redu',
cancelText: 'Prekliči',
},
Transfer: {
notFoundContent: 'Ni zadetkov',
searchPlaceholder: 'Išči tukaj',
itemUnit: 'vnos',
itemsUnit: 'vnosi',
},
Select: {
notFoundContent: 'Ni zadetkov',
},
Upload: {
uploading: 'Nalaganje...',
removeFile: 'Odstrani datoteko',
uploadError: 'Napaka pri nalaganju',
previewFile: 'Predogled datoteke',
},
};
5 changes: 5 additions & 0 deletions components/i18n/languages/time-picker/sl_SI.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const locale = {
placeholder: 'Izberite čas',
};

export default locale;
1 change: 1 addition & 0 deletions components/i18n/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export { default as pt_BR } from './languages/pt_BR';
export { default as pt_PT } from './languages/pt_PT';
export { default as ru_RU } from './languages/ru_RU';
export { default as sk_SK } from './languages/sk_SK';
export { default as sl_SI } from './languages/sl_SI';
export { default as sr_RS } from './languages/sr_RS';
export { default as sv_SE } from './languages/sv_SE';
export { default as th_TH } from './languages/th_TH';
Expand Down

0 comments on commit cae3868

Please sign in to comment.