mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Backport pull request #4005 from jellyfin/release-10.8.z
Fix locale with suffix
Original-merge: b14d76a3d4
Merged-by: Bill Thornton <thornbill@users.noreply.github.com>
Backported-by: Bill Thornton <thornbill@users.noreply.github.com>
This commit is contained in:
parent
1ac326d40b
commit
899f61a51d
5 changed files with 16 additions and 9 deletions
|
@ -68,9 +68,14 @@ export function getLocale() {
|
|||
return dateLocales(globalize.getCurrentLocale()) || dateLocales(globalize.getCurrentLocale().replace(/-.*/, '')) || enUS;
|
||||
}
|
||||
|
||||
export const localeWithSuffix = { addSuffix: true, locale: getLocale() };
|
||||
export function getLocaleWithSuffix() {
|
||||
return {
|
||||
addSuffix: true,
|
||||
locale: getLocale()
|
||||
};
|
||||
}
|
||||
|
||||
export default {
|
||||
getLocale: getLocale,
|
||||
localeWithSuffix: localeWithSuffix
|
||||
getLocaleWithSuffix
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue