Skip to content

Commit

Permalink
feat: Added fr-BE (#4004)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSuperBeaver authored Aug 8, 2024
1 parent d53f81c commit f92a9af
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev/code-generation/gen_ts_locales.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class LocaleData:
"es-ES": LocaleData(name="Español (Spanish)"),
"fi-FI": LocaleData(name="Suomi (Finnish)"),
"fr-FR": LocaleData(name="Français (French)"),
"fr-BE": LocaleData(name="Belge (Belgian)"),
"gl-ES": LocaleData(name="Galego (Galician)"),
"he-IL": LocaleData(name="עברית (Hebrew)", dir="rtl"),
"hr-HR": LocaleData(name="Hrvatski (Croatian)"),
Expand Down
6 changes: 6 additions & 0 deletions frontend/composables/use-locales/available-locales.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,12 @@ export const LOCALES = [
progress: 100,
dir: "ltr",
},
{
name: "Belge (Belgian)",
value: "fr-BE",
progress: 100,
dir: "ltr",
},
{
name: "French, Canada",
value: "fr-CA",
Expand Down
21 changes: 21 additions & 0 deletions frontend/lang/dateTimeFormats/fr-BE.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"short": {
"month": "short",
"day": "numeric",
"weekday": "long"
},
"medium": {
"month": "long",
"day": "numeric",
"weekday": "long",
"year": "numeric"
},
"long": {
"year": "numeric",
"month": "long",
"day": "numeric",
"weekday": "long",
"hour": "numeric",
"minute": "numeric"
}
}
2 changes: 2 additions & 0 deletions frontend/nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ export default {
{ code: "cs-CZ", file: "cs-CZ.json" },
{ code: "gl-ES", file: "gl-ES.json" },
{ code: "fr-FR", file: "fr-FR.json" },
{ code: "fr-BE", file: "fr-BE.json" },
{ code: "zh-TW", file: "zh-TW.json" },
{ code: "af-ZA", file: "af-ZA.json" },
{ code: "is-IS", file: "is-IS.json" },
Expand Down Expand Up @@ -252,6 +253,7 @@ export default {
"sr-SP": require("./lang/dateTimeFormats/sr-SP.json"),
"cs-CZ": require("./lang/dateTimeFormats/cs-CZ.json"),
"fr-FR": require("./lang/dateTimeFormats/fr-FR.json"),
"fr-BE": require("./lang/dateTimeFormats/fr-BE.json"),
"zh-TW": require("./lang/dateTimeFormats/zh-TW.json"),
"af-ZA": require("./lang/dateTimeFormats/af-ZA.json"),
"ru-RU": require("./lang/dateTimeFormats/ru-RU.json"),
Expand Down
1 change: 1 addition & 0 deletions frontend/vuetify.options.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export default {
"sr-SP": locale.srCyrl,
"cs-CZ": locale.cs,
"fr-FR": locale.fr,
"fr-BE": locale.fr,
"zh-TW": locale.zhHant,
"af-ZA": locale.af,
"sl-SI": locale.sl,
Expand Down
1 change: 1 addition & 0 deletions mealie/schema/_mealie/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def validate_locale(locale: str) -> bool:
"fi-FI",
"fr-CA",
"fr-FR",
"fr-BE",
"gl-ES",
"he-IL",
"hr-HR",
Expand Down

0 comments on commit f92a9af

Please sign in to comment.