Skip to content

ui5-webcomponents DateTimePicker how to change language ?? #10020

Closed Answered by petyabegovska
pupss89345 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, the documentation is here: https://sap.github.io/ui5-webcomponents/docs/advanced/using-assets/

For example:

import "@ui5/webcomponents/dist/Assets.js";

and use:

with another language and another theme:

import { setLanguage } from "@ui5/webcomponents-base/dist/config/Language.js";
import { setTheme } from "@ui5/webcomponents-base/dist/config/Theme.js";

setLanguage("es");
setTheme("sap_fiori_3_hcb");

The ui5-date-picker component will have all translatable texts in Spanish, and the Spanish format settings (e.g. date format) will be used, and will be rendered with the sap_fiori_3_hcb accessibility theme instead of the default theme.

However, it doesn't work in the latest code and we nee…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pupss89345
Comment options

Answer selected by pupss89345
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants