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

How to use globalization (translate)? #20

Open
rstreit opened this issue Apr 12, 2024 · 1 comment
Open

How to use globalization (translate)? #20

rstreit opened this issue Apr 12, 2024 · 1 comment

Comments

@rstreit
Copy link

rstreit commented Apr 12, 2024

How to translate to display descriptions and tooltips in another language (pt-br or at least en-us)?

@ElderJames
Copy link
Member

Thanks for contacing us @rstreit , you can set up the language by add a attribute lang to the component.

<UEditor.Editor @ref="editor" @bind-Value="value" @bind-Html="html" Height="500" MinHeight="500" Width="700px" lang="en"/>

If you want to add other language, please trantlate the en files and put in wwwroot, then set up the langPath attribute to component.

<UEditor.Editor @ref="editor" @bind-Value="value" @bind-Html="html" Height="500" MinHeight="500" Width="700px" lang="pt-br" langPath="/i18n/" />

image

image

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

No branches or pull requests

2 participants