Added extra translations to display mode
This commit is contained in:
@@ -18,7 +18,9 @@ const viewTypeTitle = computed(() => getViewTypeTitle(currentConfig.viewType))
|
|||||||
</UiButton>
|
</UiButton>
|
||||||
</UiDropdownMenuTrigger>
|
</UiDropdownMenuTrigger>
|
||||||
<UiDropdownMenuContent :side="'bottom'" :collision-padding="30">
|
<UiDropdownMenuContent :side="'bottom'" :collision-padding="30">
|
||||||
<UiDropdownMenuLabel>Mode d'affichage</UiDropdownMenuLabel>
|
<UiDropdownMenuLabel>
|
||||||
|
{{ $t('ui.displayMode') }}
|
||||||
|
</UiDropdownMenuLabel>
|
||||||
<UiDropdownMenuSeparator />
|
<UiDropdownMenuSeparator />
|
||||||
<UiDropdownMenuItem
|
<UiDropdownMenuItem
|
||||||
v-for="option in viewTypeOptions"
|
v-for="option in viewTypeOptions"
|
||||||
|
|||||||
@@ -298,7 +298,7 @@ function handleCategorySelect(e: (Category)) {
|
|||||||
class="w-full"
|
class="w-full"
|
||||||
>
|
>
|
||||||
<ComboboxAnchor as-child>
|
<ComboboxAnchor as-child>
|
||||||
<ComboboxInput placeholder="Catégories" as-child>
|
<ComboboxInput :placeholder="$t('entity.categoriesNamePlural')" as-child>
|
||||||
<UiTagsInputInput
|
<UiTagsInputInput
|
||||||
class="w-full px-3"
|
class="w-full px-3"
|
||||||
:class="selectedCategories.length > 0 ? 'mt-2' : ''"
|
:class="selectedCategories.length > 0 ? 'mt-2' : ''"
|
||||||
|
|||||||
@@ -27,11 +27,14 @@ export default defineI18nConfig(() => ({
|
|||||||
dark: "Dark",
|
dark: "Dark",
|
||||||
light: "Light",
|
light: "Light",
|
||||||
system: "System",
|
system: "System",
|
||||||
|
displayMode: "Display mode"
|
||||||
},
|
},
|
||||||
common: {
|
common: {
|
||||||
title: "Title"
|
title: "Title"
|
||||||
},
|
},
|
||||||
entity: {
|
entity: {
|
||||||
|
categoriesNameSingular: "Category",
|
||||||
|
categoriesNamePlural: "Categories",
|
||||||
searchCategories: "Search categories",
|
searchCategories: "Search categories",
|
||||||
noCategoriesFound: "No categories found.",
|
noCategoriesFound: "No categories found.",
|
||||||
addDescription: "Add a description",
|
addDescription: "Add a description",
|
||||||
@@ -101,6 +104,7 @@ export default defineI18nConfig(() => ({
|
|||||||
nameSingular: "Year",
|
nameSingular: "Year",
|
||||||
},
|
},
|
||||||
months: {
|
months: {
|
||||||
|
nameSingular: "Month",
|
||||||
inputName: "Month's name",
|
inputName: "Month's name",
|
||||||
daysNb: "Number of days",
|
daysNb: "Number of days",
|
||||||
daysNameSingular: "Day",
|
daysNameSingular: "Day",
|
||||||
@@ -144,11 +148,14 @@ export default defineI18nConfig(() => ({
|
|||||||
dark: "Sombre",
|
dark: "Sombre",
|
||||||
light: "Clair",
|
light: "Clair",
|
||||||
system: "Système",
|
system: "Système",
|
||||||
|
displayMode: "Mode d'affichage",
|
||||||
},
|
},
|
||||||
common: {
|
common: {
|
||||||
title: "Titre"
|
title: "Titre"
|
||||||
},
|
},
|
||||||
entity: {
|
entity: {
|
||||||
|
categoriesNameSingular: "Catégorie",
|
||||||
|
categoriesNamePlural: "Catégories",
|
||||||
searchCategories: "Rechercher les catégories",
|
searchCategories: "Rechercher les catégories",
|
||||||
noCategoriesFound: "Aucune catégorie trouvée.",
|
noCategoriesFound: "Aucune catégorie trouvée.",
|
||||||
addDescription: "Ajouter une description",
|
addDescription: "Ajouter une description",
|
||||||
@@ -218,12 +225,13 @@ export default defineI18nConfig(() => ({
|
|||||||
nameSingular: "Année",
|
nameSingular: "Année",
|
||||||
},
|
},
|
||||||
months: {
|
months: {
|
||||||
|
nameSingular: "Mois",
|
||||||
inputName: "Nom du mois",
|
inputName: "Nom du mois",
|
||||||
daysNb: "Nombre de jours",
|
daysNb: "Nombre de jours",
|
||||||
daysNameSingular: "Jour",
|
daysNameSingular: "Jour",
|
||||||
daysNamePlural: "Jours",
|
daysNamePlural: "Jours",
|
||||||
daysMaybePlural: "jour(s)",
|
daysMaybePlural: "jour(s)",
|
||||||
yearsSingular: "Année",
|
Singular: "Année",
|
||||||
available: "Mois disponibles",
|
available: "Mois disponibles",
|
||||||
none: "Aucun mois pour l'instant",
|
none: "Aucun mois pour l'instant",
|
||||||
noneAvailable: "Aucun mois disponible",
|
noneAvailable: "Aucun mois disponible",
|
||||||
|
|||||||
@@ -25,6 +25,8 @@ type CalendarCurrentDate = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const useCalendar = defineStore("calendar", () => {
|
export const useCalendar = defineStore("calendar", () => {
|
||||||
|
const { t } = useI18n()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Static calendar config
|
* Static calendar config
|
||||||
*/
|
*/
|
||||||
@@ -326,7 +328,7 @@ export const useCalendar = defineStore("calendar", () => {
|
|||||||
function getViewTypeTitle(viewType: CalendarViewType): string {
|
function getViewTypeTitle(viewType: CalendarViewType): string {
|
||||||
switch (viewType) {
|
switch (viewType) {
|
||||||
case "year":
|
case "year":
|
||||||
return "Année"
|
return t("entity.calendar.years.nameSingular")
|
||||||
|
|
||||||
case "decade":
|
case "decade":
|
||||||
return "Décennie"
|
return "Décennie"
|
||||||
@@ -336,7 +338,7 @@ export const useCalendar = defineStore("calendar", () => {
|
|||||||
|
|
||||||
case "month":
|
case "month":
|
||||||
default:
|
default:
|
||||||
return "Mois"
|
return t("entity.calendar.months.nameSingular")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user