feat(i18n, frontend): add 'acknowledgeHelp' translations and UI enhancements
All checks were successful
Deploy to production / deploy (push) Successful in 2m56s
All checks were successful
Deploy to production / deploy (push) Successful in 2m56s
- Introduced 'acknowledgeHelp' translations in Cebuano, German, English, and Spanish to provide users with context about the implications of acknowledging relationships. - Updated the FamilyView component to display the new 'acknowledgeHelp' information, enhancing user understanding of relationship dynamics. - Improved styling for the acknowledgment help section to ensure clarity and visibility within the user interface.
This commit is contained in:
@@ -828,6 +828,12 @@
|
|||||||
"title": "Posible nga mga affair",
|
"title": "Posible nga mga affair",
|
||||||
"roleLabel": "Porma sa relasyon",
|
"roleLabel": "Porma sa relasyon",
|
||||||
"none": "Walay angay nga bag-ong affair karon."
|
"none": "Walay angay nga bag-ong affair karon."
|
||||||
|
},
|
||||||
|
"acknowledgeHelp": {
|
||||||
|
"title": "Unsa ang buot ipasabot sa \"giila\"?",
|
||||||
|
"meaning": "Ang giilang affair nailhan sa publiko. Kasagaran mosaka ang visibility ug risgo sa iskandalo.",
|
||||||
|
"tradeoff": "Iila kung gusto nimo og bukas ug lig-on nga relasyon. Ayaw iila kung mas gusto nimo ang diskresyon ug mas ubos nga risgo.",
|
||||||
|
"buttonHint": "Himong opisyal ang relasyon ug moubos ang diskresyon."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tabsAria": "Family sections",
|
"tabsAria": "Family sections",
|
||||||
|
|||||||
@@ -754,6 +754,12 @@
|
|||||||
"politicalFreeMaintenance": "Amt (frei)",
|
"politicalFreeMaintenance": "Amt (frei)",
|
||||||
"statusFit": "Standespassung",
|
"statusFit": "Standespassung",
|
||||||
"acknowledged": "Anerkannt",
|
"acknowledged": "Anerkannt",
|
||||||
|
"acknowledgeHelp": {
|
||||||
|
"title": "Was bedeutet „anerkannt“?",
|
||||||
|
"meaning": "Eine anerkannte Liebschaft ist öffentlich bekannt. Das erhöht in der Regel Sichtbarkeit und Skandalrisiko.",
|
||||||
|
"tradeoff": "Anerkennen ist sinnvoll für eine offene, stabile Beziehung. Nicht anerkennen ist besser, wenn du Diskretion und geringes Risiko willst.",
|
||||||
|
"buttonHint": "Macht die Beziehung offiziell und damit weniger diskret."
|
||||||
|
},
|
||||||
"underfunded": "{count} Monate unterversorgt",
|
"underfunded": "{count} Monate unterversorgt",
|
||||||
"role": {
|
"role": {
|
||||||
"secret_affair": "Heimliche Liebschaft",
|
"secret_affair": "Heimliche Liebschaft",
|
||||||
|
|||||||
@@ -41,8 +41,7 @@
|
|||||||
"overproduction": "Overproduction: your production is {value}% above demand."
|
"overproduction": "Overproduction: your production is {value}% above demand."
|
||||||
},
|
},
|
||||||
"transport": {
|
"transport": {
|
||||||
"waiting": "Transport waiting"
|
"waiting": "Transport waiting",
|
||||||
,
|
|
||||||
"modes": {
|
"modes": {
|
||||||
"land": "Land",
|
"land": "Land",
|
||||||
"water": "Water",
|
"water": "Water",
|
||||||
@@ -488,8 +487,8 @@
|
|||||||
"storage": "Storage",
|
"storage": "Storage",
|
||||||
"transport": "Transport",
|
"transport": "Transport",
|
||||||
"taxes": "Taxes"
|
"taxes": "Taxes"
|
||||||
}
|
},
|
||||||
,"taxes": {
|
"taxes": {
|
||||||
"title": "Taxes",
|
"title": "Taxes",
|
||||||
"loading": "Loading tax data...",
|
"loading": "Loading tax data...",
|
||||||
"loadingError": "Failed to load tax data: {error}",
|
"loadingError": "Failed to load tax data: {error}",
|
||||||
@@ -933,6 +932,12 @@
|
|||||||
"title": "Possible affairs",
|
"title": "Possible affairs",
|
||||||
"roleLabel": "Relationship form",
|
"roleLabel": "Relationship form",
|
||||||
"none": "There are currently no suitable new affairs."
|
"none": "There are currently no suitable new affairs."
|
||||||
|
},
|
||||||
|
"acknowledgeHelp": {
|
||||||
|
"title": "What does 'acknowledged' mean?",
|
||||||
|
"meaning": "An acknowledged affair is publicly known. This usually increases visibility and scandal risk.",
|
||||||
|
"tradeoff": "Acknowledge if you want an open, stable relationship. Keep it unacknowledged if you want discretion and lower risk.",
|
||||||
|
"buttonHint": "Makes the relationship official and less discreet."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"notifications": {
|
"notifications": {
|
||||||
|
|||||||
@@ -786,6 +786,12 @@
|
|||||||
"title": "Posibles relaciones",
|
"title": "Posibles relaciones",
|
||||||
"roleLabel": "Forma de la relación",
|
"roleLabel": "Forma de la relación",
|
||||||
"none": "Actualmente no hay nuevas relaciones adecuadas."
|
"none": "Actualmente no hay nuevas relaciones adecuadas."
|
||||||
|
},
|
||||||
|
"acknowledgeHelp": {
|
||||||
|
"title": "¿Qué significa \"reconocido\"?",
|
||||||
|
"meaning": "Una relación reconocida es pública. Normalmente aumenta la visibilidad y el riesgo de escándalo.",
|
||||||
|
"tradeoff": "Reconocer conviene si quieres una relación abierta y estable. No reconocer conviene si prefieres discreción y menos riesgo.",
|
||||||
|
"buttonHint": "Hace oficial la relación y reduce la discreción."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"notifications": {
|
"notifications": {
|
||||||
|
|||||||
@@ -342,6 +342,11 @@
|
|||||||
<!-- Liebhaber / Geliebte -->
|
<!-- Liebhaber / Geliebte -->
|
||||||
<div class="lovers-section">
|
<div class="lovers-section">
|
||||||
<h3>{{ $t('falukant.family.lovers.title') }}</h3>
|
<h3>{{ $t('falukant.family.lovers.title') }}</h3>
|
||||||
|
<div class="lovers-acknowledge-help">
|
||||||
|
<strong>{{ $t('falukant.family.lovers.acknowledgeHelp.title') }}</strong>
|
||||||
|
<p>{{ $t('falukant.family.lovers.acknowledgeHelp.meaning') }}</p>
|
||||||
|
<p>{{ $t('falukant.family.lovers.acknowledgeHelp.tradeoff') }}</p>
|
||||||
|
</div>
|
||||||
<p v-if="politicalFreeLoverSlots > 0" class="lovers-political-hint">
|
<p v-if="politicalFreeLoverSlots > 0" class="lovers-political-hint">
|
||||||
{{ $t('falukant.family.lovers.politicalFreeSlotsHint', { count: politicalFreeLoverSlots }) }}
|
{{ $t('falukant.family.lovers.politicalFreeSlotsHint', { count: politicalFreeLoverSlots }) }}
|
||||||
</p>
|
</p>
|
||||||
@@ -393,7 +398,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</dl>
|
</dl>
|
||||||
<div class="lover-card__meta">
|
<div class="lover-card__meta">
|
||||||
<span v-if="lover.acknowledged" class="lover-meta-badge">
|
<span
|
||||||
|
v-if="lover.acknowledged"
|
||||||
|
class="lover-meta-badge"
|
||||||
|
:title="$t('falukant.family.lovers.acknowledgeHelp.meaning')"
|
||||||
|
>
|
||||||
{{ $t('falukant.family.lovers.acknowledged') }}
|
{{ $t('falukant.family.lovers.acknowledged') }}
|
||||||
</span>
|
</span>
|
||||||
<span v-if="lover.monthsUnderfunded > 0" class="lover-meta-badge lover-meta-badge--warning">
|
<span v-if="lover.monthsUnderfunded > 0" class="lover-meta-badge lover-meta-badge--warning">
|
||||||
@@ -414,6 +423,7 @@
|
|||||||
v-if="!lover.acknowledged"
|
v-if="!lover.acknowledged"
|
||||||
class="button button--secondary"
|
class="button button--secondary"
|
||||||
@click="acknowledgeLover(lover)"
|
@click="acknowledgeLover(lover)"
|
||||||
|
:title="$t('falukant.family.lovers.acknowledgeHelp.buttonHint')"
|
||||||
>
|
>
|
||||||
{{ $t('falukant.family.lovers.actions.acknowledge') }}
|
{{ $t('falukant.family.lovers.actions.acknowledge') }}
|
||||||
</button>
|
</button>
|
||||||
@@ -1540,6 +1550,25 @@ export default {
|
|||||||
color: var(--color-text-secondary);
|
color: var(--color-text-secondary);
|
||||||
margin: 0 0 12px 0;
|
margin: 0 0 12px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.lovers-acknowledge-help {
|
||||||
|
margin: 0 0 12px 0;
|
||||||
|
padding: 10px 12px;
|
||||||
|
border: 1px dashed var(--color-border);
|
||||||
|
border-radius: var(--radius-md);
|
||||||
|
background: rgba(255, 250, 243, 0.6);
|
||||||
|
}
|
||||||
|
|
||||||
|
.lovers-acknowledge-help strong {
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lovers-acknowledge-help p {
|
||||||
|
margin: 4px 0;
|
||||||
|
color: var(--color-text-secondary);
|
||||||
|
font-size: 0.9rem;
|
||||||
|
}
|
||||||
.lover-political-free {
|
.lover-political-free {
|
||||||
display: block;
|
display: block;
|
||||||
font-size: 0.85rem;
|
font-size: 0.85rem;
|
||||||
|
|||||||
Reference in New Issue
Block a user