Handle unsupported dayjs locales

DayJs doesn't support all the locales returned by "navigator.language"
This commit is contained in:
schroda
2024-06-25 17:11:33 +02:00
parent 1e39619314
commit 17e2d7585d
10 changed files with 418 additions and 220 deletions

View File

@@ -18,6 +18,9 @@
"gql:codegen-formatter": "ts-node -T tools/scripts/codegenFormatter.ts",
"gql:codegen": "yarn gql:codegen-base & yarn gql:codegen-formatter",
"i18n:gen-resources": "ts-node -T tools/scripts/generatei18nResources.ts",
"dayjs:gen-locales-array": "ts-node -T tools/scripts/generateDayJsLocales.ts",
"dayjs:gen-locales-import": "ts-node -T tools/scripts/generateDayJsLocalesImport.ts",
"dayjs:gen-locales": "yarn dayjs:gen-locales-array && yarn dayjs:gen-locales-import",
"prepare": "husky"
},
"engines": {