mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-09 20:12:10 +10:00
* feat: set lang in html head * fix: add # in front of git ref * fix: remove unused vars from example env * fix: package name and license field * fix: enable sourcemap for client and server * fix: emojis not showing in prod this is extremely cursed, but it works * chore: refactor auth manager * feat: disable invitations if simple auth disabled * feat: add drop version to footer * feat: translate auth endpoints * chore: move oidc module * feat: add weekly tasks enabled object cleanup as weekly task * feat: add timestamp to task log msgs * feat: add guard to prevent invalid progress % * fix: add missing global scope to i18n components * feat: set base url for i18n * feat: switch task log to json format * ci: run ci on develop branch only * fix: UserWidget text not updating #109 * fix: EXTERNAL_URL being computed at build * feat: add basic language outlines for translation * feat: add more english dialects
36 lines
896 B
TypeScript
36 lines
896 B
TypeScript
export default defineI18nConfig(() => {
|
|
const defaultDateTimeFormat = {
|
|
short: {
|
|
year: "numeric",
|
|
month: "long",
|
|
day: "numeric",
|
|
},
|
|
long: {
|
|
year: "numeric",
|
|
month: "short",
|
|
day: "numeric",
|
|
weekday: "short",
|
|
hour: "numeric",
|
|
minute: "numeric",
|
|
},
|
|
} as const;
|
|
|
|
return {
|
|
// https://i18n.nuxtjs.org/docs/guide/locale-fallback
|
|
fallbackLocale: "en-us",
|
|
// https://vue-i18n.intlify.dev/guide/essentials/datetime.html
|
|
datetimeFormats: {
|
|
"en-us": defaultDateTimeFormat,
|
|
"en-gb": defaultDateTimeFormat,
|
|
"en-au": defaultDateTimeFormat,
|
|
"en-pirate": defaultDateTimeFormat,
|
|
fr: defaultDateTimeFormat,
|
|
de: defaultDateTimeFormat,
|
|
it: defaultDateTimeFormat,
|
|
es: defaultDateTimeFormat,
|
|
zh: defaultDateTimeFormat,
|
|
"zh-tw": defaultDateTimeFormat,
|
|
},
|
|
};
|
|
});
|