Skip to content

Add a Russian locale to custom moment.js file - #2575

Open
akortunov wants to merge 1 commit into
HangfireIO:mainfrom
akortunov:features/moment_js_locales
Open

akortunov wants to merge 1 commit into
HangfireIO:mainfrom
akortunov:features/moment_js_locales

Conversation

@akortunov

Copy link
Copy Markdown
Contributor

A follow-up work for #2574.

Commit 061999a removed locales which are not supported by the Hangfire Dashboard, so a Russian locale needs to be restored in this file.

A file in this MR is basically a minified version of upstream moment.js with injected hooks for exising locales currently supported by Hangfire plus a Russian locale.

Non-minified file: moment-with-locales.js
Probably it makes sense to keep it somewhere in the codebase as well.

Two-letter locales work, while additional locales ("pt-br", "zh-cn" and "zh-tw") are not really used because Hangfire takes only a two-letter ISO language name:

<html lang="@CultureInfo.CurrentUICulture.TwoLetterISOLanguageName">

But it is a separate issue.

Screenshots image

Catalan ("ca")

image

German ("de")

image

English ("en")

image

Spanish ("es")

image

Farsi ("fa")

image

French ("fr")

image

Norwegian ("nb")

image

Dutch ("nl")

image

Portuguese ("pt")

image

Russian ("ru")

image

Sweden ("sv")

image

Turkish ("tr")

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant