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

Localized month and days names #57

Open
zapateo opened this issue Jan 28, 2022 · 3 comments
Open

Localized month and days names #57

zapateo opened this issue Jan 28, 2022 · 3 comments
Assignees

Comments

@zapateo
Copy link

zapateo commented Jan 28, 2022

This template:

{{#custom_datetime}}ddd D MMM YYYY{{/custom_datetime}}

renders to:

Fri 28 Jan 2022

but I would like to get the month and day names localized in my language, for example italian:

Ven 28 Gen 2022

Is there any way to get this?

(ps. thanks for this awesome extension).

@nishantwrp
Copy link
Collaborator

Not sure, @CalebJohn is there a way to use joplin's i18n inside plugins?

@CalebJohn
Copy link
Collaborator

Not sure, @CalebJohn is there a way to use joplin's i18n inside plugins?

It's not possible to access Joplin's il8n inside plugins, but you don't need it for this anyways. You only need the current locale which you can access with joplin.settings.globalValue('locale').

@q-wertz
Copy link

q-wertz commented Sep 7, 2023

One related question: Why does when using {{ bowm }} and selecting Date format 30.01.2017 but Language English UK) the date get rendered as 30/07/2017 and not as the specifically selected format? (Or is this a current bug?)

Would be a nice enhancement to rely on this value instead the language setting...

Sorry for the noise. Joplin requires a restart and then it works

@nishantwrp nishantwrp self-assigned this Nov 4, 2023
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

4 participants