mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 05:05:48 +08:00
lithuanian language (#26312)
Co-authored-by: 二货机器人 <smith3816@gmail.com>
This commit is contained in:
parent
60771a0f61
commit
16962bbff1
3
components/calendar/locale/lt_LT.tsx
Normal file
3
components/calendar/locale/lt_LT.tsx
Normal file
@ -0,0 +1,3 @@
|
||||
import ltLT from '../../date-picker/locale/lt_LT';
|
||||
|
||||
export default ltLT;
|
27
components/date-picker/locale/lt_LT.tsx
Normal file
27
components/date-picker/locale/lt_LT.tsx
Normal file
@ -0,0 +1,27 @@
|
||||
import CalendarLocale from 'rc-picker/lib/locale/lt_LT';
|
||||
import TimePickerLocale from '../../time-picker/locale/lt_LT';
|
||||
import { PickerLocale } from '../generatePicker';
|
||||
|
||||
// Merge into a locale object
|
||||
const locale: PickerLocale = {
|
||||
lang: {
|
||||
placeholder: 'Pasirinkite datą',
|
||||
yearPlaceholder: 'Pasirinkite metus',
|
||||
quarterPlaceholder: 'Pasirinkite ketvirtį',
|
||||
monthPlaceholder: 'Pasirinkite mėnesį',
|
||||
weekPlaceholder: 'Pasirinkite savaitę',
|
||||
rangePlaceholder: ['Pradžios data', 'Pabaigos data'],
|
||||
rangeYearPlaceholder: ['Pradžios metai', 'Pabaigos metai'],
|
||||
rangeMonthPlaceholder: ['Pradžios mėnesis', 'Pabaigos mėnesis'],
|
||||
rangeWeekPlaceholder: ['Pradžios savaitė', 'Pabaigos savaitė'],
|
||||
...CalendarLocale,
|
||||
},
|
||||
timePickerLocale: {
|
||||
...TimePickerLocale,
|
||||
},
|
||||
};
|
||||
|
||||
// All settings at:
|
||||
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
|
||||
|
||||
export default locale;
|
3
components/locale-provider/lt_LT.tsx
Normal file
3
components/locale-provider/lt_LT.tsx
Normal file
@ -0,0 +1,3 @@
|
||||
import locale from '../locale/lt_LT';
|
||||
|
||||
export default locale;
|
126
components/locale/lt_LT.tsx
Normal file
126
components/locale/lt_LT.tsx
Normal file
@ -0,0 +1,126 @@
|
||||
/* eslint-disable no-template-curly-in-string */
|
||||
|
||||
import Pagination from 'rc-pagination/lib/locale/lt_LT';
|
||||
import DatePicker from '../date-picker/locale/lt_LT';
|
||||
import TimePicker from '../time-picker/locale/lt_LT';
|
||||
import Calendar from '../calendar/locale/lt_LT';
|
||||
import { Locale } from '../locale-provider';
|
||||
|
||||
const typeTemplate: string = '${label} не является типом ${type}';
|
||||
|
||||
const localeValues: Locale = {
|
||||
locale: 'lt',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Filtras',
|
||||
filterConfirm: 'Gerai',
|
||||
filterReset: 'Atstatyti',
|
||||
filterEmptyText: 'Be filtrų',
|
||||
emptyText: 'Nėra duomenų',
|
||||
selectAll: 'Pasirinkti viską',
|
||||
selectInvert: 'Apversti pasirinkimą',
|
||||
selectionAll: 'Rinktis visus',
|
||||
sortTitle: 'Rikiavimas',
|
||||
expand: 'Išskleisti',
|
||||
collapse: 'Suskleisti',
|
||||
triggerDesc: 'Spustelėkite norėdami rūšiuoti mažėjančia tvarka',
|
||||
triggerAsc: 'Spustelėkite norėdami rūšiuoti didėjančia tvarka',
|
||||
cancelSort: 'Spustelėkite, kad atšauktumėte rūšiavimą',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'Taip',
|
||||
cancelText: 'Atšaukti',
|
||||
justOkText: 'Gerai',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'Taip',
|
||||
cancelText: 'Atšaukti',
|
||||
},
|
||||
Transfer: {
|
||||
titles: ['', ''],
|
||||
searchPlaceholder: 'Paieška',
|
||||
itemUnit: 'vnt.',
|
||||
itemsUnit: 'vnt.',
|
||||
remove: 'Pašalinti',
|
||||
selectAll: 'Pasirinkti visus',
|
||||
selectCurrent: 'Pasirinkite dabartinį puslapį',
|
||||
selectInvert: 'Atkeist pasirinkimą',
|
||||
removeAll: 'Ištrinti visus duomenis',
|
||||
removeCurrent: 'Ištrinti dabartinį puslapį',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'Gaunami duomenys...',
|
||||
removeFile: 'Ištrinti failą',
|
||||
uploadError: 'Įkeliant įvyko klaida',
|
||||
previewFile: 'Failo peržiūra',
|
||||
downloadFile: 'Įkelti failą',
|
||||
},
|
||||
Empty: {
|
||||
description: 'Nėra duomenų',
|
||||
},
|
||||
Icon: {
|
||||
icon: 'piktograma',
|
||||
},
|
||||
Text: {
|
||||
edit: 'Redaguoti',
|
||||
copy: 'Kopijuoti',
|
||||
copied: 'Nukopijuota',
|
||||
expand: 'Plačiau',
|
||||
},
|
||||
PageHeader: {
|
||||
back: 'Atgal',
|
||||
},
|
||||
Form: {
|
||||
defaultValidateMessages: {
|
||||
default: 'Laukelio klaida ${label}',
|
||||
required: 'Prašome įvesti ${label}',
|
||||
enum: '${label} turėtu būti vienas iš [${enum}]',
|
||||
whitespace: '${label} negali likti tuščiu',
|
||||
date: {
|
||||
format: '${label} neteisingas datos formatas',
|
||||
parse: '${label} negali būti konvertuotas į datą',
|
||||
invalid: '${label} neatitinka datos formato',
|
||||
},
|
||||
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} turi būti ${len} simbolių',
|
||||
min: '${label} turi būti ilgesnis nei ${min} simbolių',
|
||||
max: '${label} turi būti ne trumpesnis ${max} simbolių',
|
||||
range: 'Lauko ${label} reikšmės ribos ${min}-${max} simbolių',
|
||||
},
|
||||
number: {
|
||||
len: '${label} turi būti lygi ${len}',
|
||||
min: '${label} turi būti lygus arba didesnis ${min}',
|
||||
max: '${label} turi būti lygus arba mažesnis ${max}',
|
||||
},
|
||||
array: {
|
||||
len: 'Pasirinktas kiekis ${label} turi būti lygus ${len}',
|
||||
min: 'Pasirinktas kiekis ${label} turi būti lygus arba didesnis ${min}',
|
||||
max: 'Pasirinktas kiekis ${label} turi būti lygus arba mažesnis ${max}',
|
||||
range: 'Pasirinktas kiekis ${label} turi būti tarp ${min} и ${max}',
|
||||
},
|
||||
pattern: {
|
||||
mismatch: '${label} neatitinka modelio ${pattern}',
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default localeValues;
|
8
components/time-picker/locale/lt_LT.tsx
Normal file
8
components/time-picker/locale/lt_LT.tsx
Normal file
@ -0,0 +1,8 @@
|
||||
import { TimePickerLocale } from '../index';
|
||||
|
||||
const locale: TimePickerLocale = {
|
||||
placeholder: 'Pasirinkite laiką',
|
||||
rangePlaceholder: ['Pradžios laikas', 'Pabaigos laikas'],
|
||||
};
|
||||
|
||||
export default locale;
|
@ -130,8 +130,8 @@
|
||||
"rc-menu": "~8.5.2",
|
||||
"rc-motion": "^1.0.0",
|
||||
"rc-notification": "~4.4.0",
|
||||
"rc-pagination": "~3.0.0",
|
||||
"rc-picker": "~2.0.1",
|
||||
"rc-pagination": "~3.0.3",
|
||||
"rc-picker": "~2.0.6",
|
||||
"rc-progress": "~3.0.0",
|
||||
"rc-rate": "~2.8.2",
|
||||
"rc-resize-observer": "^0.2.3",
|
||||
|
Loading…
Reference in New Issue
Block a user