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

Add Polish language #2354

Closed
Coolxer opened this issue Feb 8, 2022 · 3 comments
Closed

Add Polish language #2354

Coolxer opened this issue Feb 8, 2022 · 3 comments
Labels
feature request New feature or request

Comments

@Coolxer
Copy link
Contributor

Coolxer commented Feb 8, 2022

This function solves the problem (这个功能解决的问题)

Expanding the group of users.

Expected API (期望的 API) [plPL.js file below]

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const plPL = {
name: 'pl-PL',
global: {
undo: 'Confij',
redo: 'Ponów',
confirm: 'Potwierdź'
},
Popconfirm: {
positiveText: 'Potwierdź',
negativeText: 'Anuluj'
},
Cascader: {
placeholder: 'Wybierz',
loading: 'Ładowanie',
loadingRequiredMessage: (label) => Proszę załadować wszystkie ${label}'s elementy przed sprawdzeniem.
},
Time: {
dateFormat: 'yyyy-MM-dd',
dateTimeFormat: 'yyyy-MM-dd HH:mm:ss'
},
DatePicker: {
yearFormat: 'yyyy',
monthFormat: 'MMM',
dayFormat: 'eeeeee',
yearTypeFormat: 'yyyy',
monthTypeFormat: 'yyyy-MM',
dateFormat: 'yyyy-MM-dd',
dateTimeFormat: 'yyyy-MM-dd HH:mm:ss',
quarterFormat: 'yyyy-qqq',
clear: 'Wyczyść',
now: 'Teraz',
confirm: 'Potwierdź',
selectTime: 'Wybierz czas',
selectDate: 'Wybierz datę',
datePlaceholder: 'Wybierz datę',
datetimePlaceholder: 'Wybierz datę i czas',
monthPlaceholder: 'Wybierz miesiąc',
yearPlaceholder: 'Wybierz rok',
quarterPlaceholder: 'Wybierz kwartał',
startDatePlaceholder: 'Data rozpoczęcia',
endDatePlaceholder: 'Data zakończenia',
startDatetimePlaceholder: 'Data i godzina rozpoczęcia',
endDatetimePlaceholder: 'Data i godzina zakończenia',
monthBeforeYear: true,
firstDayOfWeek: 6,
today: 'Dziś'
},
DataTable: {
checkTableAll: 'Zaznacz wszystkie w tabeli',
uncheckTableAll: 'Odznacz wszystkie w tabeli',
confirm: 'Potwierdź',
clear: 'Wyczyść'
},
Transfer: {
sourceTitle: 'Źródło',
targetTitle: 'Cel'
},
Empty: {
description: 'Brak danych'
},
Select: {
placeholder: 'Wybierz'
},
TimePicker: {
placeholder: 'Wybierz czas',
positiveText: 'Potwierdź',
negativeText: 'Anuluj',
now: 'Teraz'
},
Pagination: {
goto: 'Idź do',
selectionSuffix: 'strona'
},
DynamicTags: {
add: 'Dodaj'
},
Log: {
loading: 'Ładowanie'
},
Input: {
placeholder: 'Wprowadź dane'
},
InputNumber: {
placeholder: 'Wprowadź dane'
},
DynamicInput: {
create: 'Utwórz'
},
ThemeEditor: {
title: 'Edytor motywów',
clearAllVars: 'Wyczyść wszystkie zmienne',
clearSearch: 'Wyczyść wyszukiwanie',
filterCompName: 'Nazwa komponentu filtra',
filterVarName: 'Nazwa zmiennej filtra',
import: 'Importuj',
export: 'Eksportuj',
restore: 'Przywróć ustawienia domyślne'
},
Image: {
tipPrevious: 'Poprzednie zdjęcie (←)',
tipNext: 'Następne zdjęcie (→)',
tipCounterclockwise: 'Przeciwnie do ruchu wskazówek zegara',
tipClockwise: 'Zgodnie z ruchem wskazówek zegara',
tipZoomOut: 'Powiększ',
tipZoomIn: 'Pomniejsz',
tipClose: 'Zamknij (Esc)'
}
};
exports.default = plPL;

@github-actions github-actions bot added the feature request New feature or request label Feb 8, 2022
@Coolxer
Copy link
Contributor Author

Coolxer commented Feb 8, 2022

I have created files (on my locale machine):
node_modules/naive-ui/lib/locales/common/plPL.js
node_modules/naive-ui/lib/locales/common/plPL.d.ts
node_modules/naive-ui/lib/locales/date/plPL.js
node_modules/naive-ui/lib/locales/date/plPL.d.ts

and also modified files:
node_modules/naive-ui/lib/locales/index.d.ts
node_modules/naive-ui/lib/locales/index.js

but it still not working

@XieZongChen
Copy link
Collaborator

XieZongChen commented Feb 8, 2022

I have created files (on my locale machine): node_modules/naive-ui/lib/locales/common/plPL.js node_modules/naive-ui/lib/locales/common/plPL.d.ts node_modules/naive-ui/lib/locales/date/plPL.js node_modules/naive-ui/lib/locales/date/plPL.d.ts

and also modified files: node_modules/naive-ui/lib/locales/index.d.ts node_modules/naive-ui/lib/locales/index.js

but it still not working

You can refer to : https://github.com/TuSimple/naive-ui/pull/1753/files

If there's still a problem, �Please tell me, I can help submit PR

@07akioni
Copy link
Collaborator

07akioni commented Feb 8, 2022

solved in relevant pr

@07akioni 07akioni closed this as completed Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants