mirror of
https://github.com/LucasKalil-Programador/world-2026-hub.git
synced 2026-07-04 17:41:28 -03:00
refactor(footer): version-managed app display
- Add APP_VERSION constant for easy version bumping - Update EN/PT footer to show version instead of JSON reference - Simplifies footer maintenance: bump one line in i18n.js
This commit is contained in:
parent
e0eef678b3
commit
6f67acb43f
1 changed files with 5 additions and 2 deletions
|
|
@ -5,6 +5,9 @@
|
||||||
|
|
||||||
import { getPrefs, setPref } from './storage.js';
|
import { getPrefs, setPref } from './storage.js';
|
||||||
|
|
||||||
|
// App version for footer display — bump this after any notable changes
|
||||||
|
const APP_VERSION = 'v1.0.1';
|
||||||
|
|
||||||
const dicts = {
|
const dicts = {
|
||||||
en: {
|
en: {
|
||||||
'a11y.skip': 'Skip to content',
|
'a11y.skip': 'Skip to content',
|
||||||
|
|
@ -174,7 +177,7 @@ const dicts = {
|
||||||
'stats.prevPage': 'Previous page',
|
'stats.prevPage': 'Previous page',
|
||||||
'stats.nextPage': 'Next page',
|
'stats.nextPage': 'Next page',
|
||||||
'stats.seeAllMatches': 'See all matches',
|
'stats.seeAllMatches': 'See all matches',
|
||||||
'footer.note': 'Fan-made static hub — all data lives in JSON files.',
|
'footer.note': `Fan-made static hub ${APP_VERSION}`,
|
||||||
},
|
},
|
||||||
pt: {
|
pt: {
|
||||||
'a11y.skip': 'Pular para o conteúdo',
|
'a11y.skip': 'Pular para o conteúdo',
|
||||||
|
|
@ -344,7 +347,7 @@ const dicts = {
|
||||||
'stats.prevPage': 'Página anterior',
|
'stats.prevPage': 'Página anterior',
|
||||||
'stats.nextPage': 'Próxima página',
|
'stats.nextPage': 'Próxima página',
|
||||||
'stats.seeAllMatches': 'Ver todas as partidas',
|
'stats.seeAllMatches': 'Ver todas as partidas',
|
||||||
'footer.note': 'Hub estático feito por fãs — todos os dados vivem em arquivos JSON.',
|
'footer.note': `Hub estático feito por fãs ${APP_VERSION}`,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue