mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-07-24 17:03:00 +10:00
Series of small fixes (#346)
* migrate bufbuild config to v2 * fix localdir lookup * fix old oidc redirect path * rework twemoji path stuff * fix torrential cmd * fix broken lock file * align dev server port with nginx * bump pnpm * bump nuxt * make translations lazy loaded * format numbers via i18n * fix prisma breaking if extension already exists
This commit is contained in:
@@ -15,6 +15,13 @@ export default defineI18nConfig(() => {
|
||||
},
|
||||
} as const;
|
||||
|
||||
const defaultNumberFormat = {
|
||||
percent: {
|
||||
style: "percent",
|
||||
useGrouping: false,
|
||||
},
|
||||
} as const;
|
||||
|
||||
return {
|
||||
// https://i18n.nuxtjs.org/docs/guide/locale-fallback
|
||||
fallbackLocale: "en-us",
|
||||
@@ -31,5 +38,17 @@ export default defineI18nConfig(() => {
|
||||
zh: defaultDateTimeFormat,
|
||||
"zh-tw": defaultDateTimeFormat,
|
||||
},
|
||||
numberFormats: {
|
||||
"en-us": defaultNumberFormat,
|
||||
"en-gb": defaultNumberFormat,
|
||||
"en-au": defaultNumberFormat,
|
||||
"en-pirate": defaultNumberFormat,
|
||||
fr: defaultNumberFormat,
|
||||
de: defaultNumberFormat,
|
||||
it: defaultNumberFormat,
|
||||
es: defaultNumberFormat,
|
||||
zh: defaultNumberFormat,
|
||||
"zh-tw": defaultNumberFormat,
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user