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 localization for table component #1671

Closed
Merenia opened this issue Nov 12, 2020 · 3 comments
Closed

Add localization for table component #1671

Merenia opened this issue Nov 12, 2020 · 3 comments

Comments

@Merenia
Copy link

Merenia commented Nov 12, 2020

Currently, the table component does not support localizations. It is necessary to modify the labels in the js file and it's not practical in case of update.
In general, all labels should be localizable.

ex. :
itemsSteps: "all, 10,25,50,100", itemsAllTitle: "Show all", listItemsCountTitle: "Show entries:", listSearchTitle: "Search:", listInfoTitle: "Showing $1 to $2 of $3 entries", paginationPrevTitle: "Prev", paginationNextTitle: "Next"

tableRowsCountTitle: "Show entries:", tableSearchTitle: "Search:", tableInfoTitle: "Showing $1 to $2 of $3 entries", paginationPrevTitle: "Prev", paginationNextTitle: "Next", allRecordsTitle: "All", inspectorTitle: "Inspector", tableSkipTitle: "Go to page",

@xscode-auto-reply
Copy link

Thanks for opening a new issue. The team has been notified and will review it as soon as possible.
For urgent issues and priority support, visit https://xscode.com/olton/Metro-UI-CSS

@olton
Copy link
Owner

olton commented Nov 18, 2020

In 4.4.3 to i18n files added section table:

"table": {
    "rowsCount": "Show entries:",
    "search": "Search:",
    "info": "Showing $1 to $2 of $3 entries",
    "prev": "Prev",
    "next": "Next",
    "all": "All",
    "inspector": "Inspector",
    "skip": "Goto page",
    "empty": "Nothing to show"
}

Now translation added for uk-UA, ru-RU. For others used the English version. Wait for PR from the community to change localizations for other locales.

@olton
Copy link
Owner

olton commented Nov 18, 2020

The old attributes work if you define these.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants