-
+
-
+
@@ -78,7 +96,10 @@ useSortable(monthSortableList, model.value, { animation: 150, handle: ".handle"
-
+
-
@@ -88,6 +109,7 @@ useSortable(monthSortableList, model.value, { animation: 150, handle: ".handle"
+
@@ -102,12 +124,23 @@ useSortable(monthSortableList, model.value, { animation: 150, handle: ".handle"
{{ m.name }}
+
-
+
+
- jour(s)
+ {{ $t('entity.calendar.months.daysMaybePlural') }}
+
@@ -117,7 +150,9 @@ useSortable(monthSortableList, model.value, { animation: 150, handle: ".handle"
- Supprimer {{ m.name }} du calendrier
+
+ {{ $t('entity.calendar.months.deleteOne', { month: m.name }) }}
+
@@ -127,7 +162,9 @@ useSortable(monthSortableList, model.value, { animation: 150, handle: ".handle"
- Aucun mois pour l'instant
+
+ {{ $t('entity.calendar.months.none') }}
+
diff --git a/components/calendar/input/TodaySelect.vue b/components/calendar/input/TodaySelect.vue
index cfdfc26..6c09c1f 100644
--- a/components/calendar/input/TodaySelect.vue
+++ b/components/calendar/input/TodaySelect.vue
@@ -33,7 +33,7 @@ watch(model.value, (n, _o) => {
-
+
@@ -41,18 +41,20 @@ watch(model.value, (n, _o) => {
- Aucun mois disponible
+ {{ $t('entity.calendar.months.noneAvailable') }}
{{ props.availableMonths[model.month - 1].name }}
- Choisir le mois
+ {{ $t('entity.calendar.months.chooseOne') }}
- Mois disponibles
+
+ {{ $t('entity.calendar.months.available') }}
+
{
-
+
diff --git a/i18n.config.ts b/i18n.config.ts
index baccb67..ff0400a 100644
--- a/i18n.config.ts
+++ b/i18n.config.ts
@@ -5,7 +5,7 @@ export default defineI18nConfig(() => ({
en: {
head: {
title: "Fantasy calendars for TTRPGs",
- description: "Tools for players and game masters to help them visualize fantasy worlds better."
+ description: "Tools for players and game masters to help them visualize fantasy worlds better.",
},
ui: {
action: {
@@ -26,6 +26,9 @@ export default defineI18nConfig(() => ({
light: "Light",
system: "System",
},
+ common: {
+ title: "Title"
+ },
entity: {
deleteOne: "Delete \"{entity}\"",
world: {
@@ -37,17 +40,46 @@ export default defineI18nConfig(() => ({
namePlural: "Calendars",
addSingle: "Add a calendar",
notFoundForWorld: "No calendar for this world… yet !",
+ createDialog: {
+ title: "New calendar",
+ tabs: {
+ general: {
+ title: "General",
+ },
+ months: {
+ title: "Months",
+ },
+ today: {
+ title: "Today",
+ },
+ }
+ },
deleteDialog: {
title: "Are you sure you want to delete this calendar ?",
subtitle: "Its events won't be accessible anymore and you won't be able to retrieve the deleted data !",
},
+ years: {
+ nameSingular: "Year",
+ },
+ months: {
+ inputName: "Month's name",
+ daysNb: "Number of days",
+ daysNameSingular: "Day",
+ daysNamePlural: "Days",
+ daysMaybePlural: "day(s)",
+ available: "Months available",
+ none: "No months for now",
+ noneAvailable: "No months available",
+ chooseOne: "Choose a month",
+ deleteOne: "Remove {month} from this calendar"
+ }
}
}
},
fr: {
head: {
title: "Calendriers fantasies pour JDR",
- description: "Outils destinés aux joueurs et maîtres de jeux pour visualiser plus facilement leurs univers."
+ description: "Outils destinés aux joueurs et maîtres de jeux pour visualiser plus facilement leurs univers.",
},
ui: {
action: {
@@ -68,6 +100,9 @@ export default defineI18nConfig(() => ({
light: "Clair",
system: "Système",
},
+ common: {
+ title: "Titre"
+ },
entity: {
deleteOne: "Supprimer \"{entity}\"",
world: {
@@ -79,10 +114,40 @@ export default defineI18nConfig(() => ({
namePlural: "Calendrier",
addSingle: "Ajouter un calendrier",
notFoundForWorld: "Aucun calendrier pour ce monde… pour l'instant !",
+ createDialog: {
+ title: "Nouveau calendrier",
+ tabs: {
+ general: {
+ title: "Général",
+ },
+ months: {
+ title: "Mois de l'année",
+ },
+ today: {
+ title: "Aujourd'hui",
+ },
+ }
+ },
deleteDialog: {
title: "Êtes-vous sûr de supprimer ce calendrier ?",
subtitle: "Les évènements ne seront plus accessibles et vous ne pourrez plus récupérer les données !",
},
+ years: {
+ nameSingular: "Année",
+ },
+ months: {
+ inputName: "Nom du mois",
+ daysNb: "Nombre de jours",
+ daysNameSingular: "Jour",
+ daysNamePlural: "Jours",
+ daysMaybePlural: "jour(s)",
+ yearsSingular: "Année",
+ available: "Mois disponibles",
+ none: "Aucun mois pour l'instant",
+ noneAvailable: "Aucun mois disponible",
+ chooseOne: "Choisir un mois",
+ deleteOne: "Supprimer {month} du calendrier"
+ }
}
}
}