feat: upgraded hr_HR locale (#28458)

* Upgraded hr_HR locale

* Update hr_HR.tsx

Disable no-template-curly-in-string lint error

* Update hr_HR.tsx

* Update hr_HR.tsx

Co-authored-by: Amumu <yoyo837@hotmail.com>
This commit is contained in:
Filip Kukovec 2020-12-21 11:26:16 +01:00 committed by GitHub
parent 6a0e0d57f0
commit 0f87360d2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 85 additions and 4 deletions

View File

@ -6,7 +6,14 @@ import { PickerLocale } from '../generatePicker';
const locale: PickerLocale = {
lang: {
placeholder: 'Odaberite datum',
yearPlaceholder: 'Odaberite godinu',
quarterPlaceholder: 'Odaberite četvrtinu',
monthPlaceholder: 'Odaberite mjesec',
weekPlaceholder: 'Odaberite tjedan',
rangePlaceholder: ['Početni datum', 'Završni datum'],
rangeYearPlaceholder: ['Početna godina', 'Završna godina'],
rangeMonthPlaceholder: ['Početni mjesec', 'Završni mjesec'],
rangeWeekPlaceholder: ['Početni tjedan', 'Završni tjedan'],
...CalendarLocale,
},
timePickerLocale: {

View File

@ -1,9 +1,12 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/hr_HR';
import DatePicker from '../date-picker/locale/hr_HR';
import TimePicker from '../time-picker/locale/hr_HR';
import Calendar from '../calendar/locale/hr_HR';
import { Locale } from '../locale-provider';
const typeTemplate = '${label} nije valjan ${type}';
const localeValues: Locale = {
locale: 'hr',
Pagination,
@ -17,9 +20,17 @@ const localeValues: Locale = {
filterTitle: 'Filter meni',
filterConfirm: 'OK',
filterReset: 'Reset',
filterEmptyText: 'Nema filtera',
emptyText: 'Nema podataka',
selectAll: 'Označi trenutnu stranicu',
selectInvert: 'Invertiraj trenutnu stranicu',
selectionAll: 'Odaberite sve podatke',
sortTitle: 'Sortiraj',
expand: 'Proširi redak',
collapse: 'Sažmi redak',
triggerDesc: 'Kliknite za sortiranje silazno',
triggerAsc: 'Kliknite za sortiranje uzlazno',
cancelSort: 'Kliknite da biste otkazali sortiranje',
},
Modal: {
okText: 'OK',
@ -35,6 +46,12 @@ const localeValues: Locale = {
searchPlaceholder: 'Pretraži ovdje',
itemUnit: 'stavka',
itemsUnit: 'stavke',
remove: 'Ukloniti',
selectCurrent: 'Odaberite trenutnu stranicu',
removeCurrent: 'Ukloni trenutnu stranicu',
selectAll: 'Odaberite sve podatke',
removeAll: 'Uklonite sve podatke',
selectInvert: 'Obrni trenutnu stranicu',
},
Upload: {
uploading: 'Upload u tijeku...',
@ -50,10 +67,66 @@ const localeValues: Locale = {
icon: 'ikona',
},
Text: {
edit: 'uredi',
copy: 'kopiraj',
copied: 'kopiranje uspješno',
expand: 'proširi',
edit: 'Uredi',
copy: 'Kopiraj',
copied: 'Kopiranje uspješno',
expand: 'Proširi',
},
PageHeader: {
back: 'Natrag',
},
Form: {
optional: '(neobavezno)',
defaultValidateMessages: {
default: 'Pogreška provjere valjanosti polja za ${label}',
required: 'Molimo unesite ${label}',
enum: '${label} mora biti jedan od [${enum}]',
whitespace: '${label} ne može biti prazan znak',
date: {
format: '${label} format datuma je nevažeći',
parse: '${label} ne može se pretvoriti u datum',
invalid: '${label} je nevažeći datum',
},
types: {
string: typeTemplate,
method: typeTemplate,
array: typeTemplate,
object: typeTemplate,
number: typeTemplate,
date: typeTemplate,
boolean: typeTemplate,
integer: typeTemplate,
float: typeTemplate,
regexp: typeTemplate,
email: typeTemplate,
url: typeTemplate,
hex: typeTemplate,
},
string: {
len: '${label} mora biti ${len} slova',
min: '${label} mora biti najmanje ${min} slova',
max: '${label} mora biti do ${max} slova',
range: '${label} mora biti između ${min}-${max} slova',
},
number: {
len: '${label} mora biti jednak ${len}',
min: '${label} mora biti minimalano ${min}',
max: '${label} mora biti maksimalano ${max}',
range: '${label} mora biti između ${min}-${max}',
},
array: {
len: 'Mora biti ${len} ${label}',
min: 'Najmanje ${min} ${label}',
max: 'Najviše ${max} ${label}',
range: 'Količina ${label} mora biti između ${min}-${max}',
},
pattern: {
mismatch: '${label} ne odgovara obrascu ${pattern}',
},
},
},
Image: {
preview: 'Pregled',
},
};

View File

@ -2,6 +2,7 @@ import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'Odaberite vrijeme',
rangePlaceholder: ['Vrijeme početka', 'Vrijeme završetka'],
};
export default locale;