Skip to content

Commit 9e11f7a

Browse files
committed
Split translations into clearer modules
1 parent 6f03ea0 commit 9e11f7a

File tree

8 files changed

+248
-223
lines changed

8 files changed

+248
-223
lines changed

src/i18n/en/index.ts

Lines changed: 6 additions & 113 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// so you can safely delete all default props below
33

44
import { MessageFormat } from '../index';
5+
import {GameSelectionTranslation} from "./pages/GameSelectionTranslation";
6+
import {SplashTranslation} from "./pages/SplashTranslation";
7+
import {PlatformTranslation} from "./platforms/PlatformTranslation";
58

69
const message: MessageFormat = {
710
metadata: {
@@ -10,120 +13,10 @@ const message: MessageFormat = {
1013
},
1114
translations: {
1215
pages: {
13-
gameSelection: {
14-
platformModal: {
15-
header: "Which store manages your game?",
16-
selectAction: "Select platform",
17-
},
18-
pageTitle: {
19-
title: {
20-
game: 'Game selection',
21-
server: 'Server selection',
22-
},
23-
subtitle: {
24-
game: 'Which game are you managing your mods for?',
25-
server: 'Which dedicated server are you managing your mods for?',
26-
}
27-
},
28-
migrationNotice: {
29-
requiresUpdate: 'An update to the manager has occurred and needs to do background work.',
30-
actionsDisabled: 'The options to select a game are disabled until the work has completed.',
31-
},
32-
tabs: {
33-
game: 'Game',
34-
server: 'Server'
35-
},
36-
actions: {
37-
select: {
38-
game: 'Select game',
39-
server: 'Select server'
40-
},
41-
setAsDefault: 'Set as default'
42-
},
43-
filter: {
44-
placeholder: {
45-
game: 'Search for a game',
46-
server: 'Search for a server',
47-
}
48-
}
49-
},
50-
splash: {
51-
pageTitle: 'Starting {appName}',
52-
gameUpdatesWarning: 'Game updates may break mods. If a new update has been released, please be patient.',
53-
menu: {
54-
helpLabel: 'Help',
55-
helpItems: {
56-
about: 'About',
57-
faq: 'FAQ'
58-
},
59-
},
60-
actions: {
61-
goBack: 'Go back',
62-
},
63-
content: {
64-
main: {
65-
didYouKnow: 'Did you know?',
66-
externalInstallWithModManager: `
67-
You can use the "Install with Mod Manager" button on
68-
Thunderstore to install mods using {appName}.
69-
`,
70-
goToThunderstore: 'Go to Thunderstore',
71-
exportProfile: `
72-
You can export the selected profile from the settings screen as either a file, or a code.
73-
This makes it easy to share your mod list with friends!
74-
`,
75-
havingTrouble: {
76-
title: 'Having trouble?',
77-
body: 'Send a screenshot of the error in the support channel of the r2modman Discord server.',
78-
serverLinkText: 'Join the {appName} Discord server',
79-
},
80-
},
81-
about: {
82-
title: 'About {appName}',
83-
creator: 'It\'s created by Ebkr.',
84-
techStack: {
85-
builtUsing: 'The application has been built using Quasar, which provides the following tech stack:',
86-
electron: 'Electron',
87-
node: 'NodeJS',
88-
vue: 'Vue 3',
89-
typescript: 'TypeScript',
90-
}
91-
},
92-
faq: {
93-
title: 'FAQ',
94-
howToGetStarted: {
95-
title: 'How do I get started?',
96-
body: 'Head on over to the Online tab and download your favourite mods. Click "Start modded" and enjoy.'
97-
},
98-
startingWithMods: {
99-
title: 'Starting the game with mods',
100-
body: `
101-
You have to start the game from within the manager.
102-
Starting through Steam will not work without manual changes.
103-
`
104-
}
105-
}
106-
},
107-
states: {
108-
preparing: 'Preparing',
109-
checkingForUpdates: 'Checking for updates',
110-
checkingForLocalCache: 'Checking for mod list in local cache',
111-
checkingForThunderstoreUpdates: 'Checking for mod list updates from Thunderstore',
112-
loadingLatestThunderstoreList: 'Loading latest mod list from Thunderstore',
113-
pruningLocalCache: 'Pruning removed mods from local cache',
114-
processingModList: 'Processing the mod list',
115-
}
116-
}
16+
gameSelection: GameSelectionTranslation,
17+
splash: SplashTranslation
11718
},
118-
platforms: {
119-
STEAM: "Steam",
120-
STEAM_DIRECT: "Steam",
121-
EPIC_GAMES_STORE: "Epic Games Store",
122-
OCULUS_STORE: "Oculus Store",
123-
ORIGIN: "Origin / EA App",
124-
XBOX_GAME_PASS: "Xbox Game Pass",
125-
OTHER: "Autre",
126-
}
19+
platforms: PlatformTranslation
12720
}
12821
};
12922

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import {GameSelectionMessageFormat} from "../../base/pages/GameSelectionMessageFormat";
2+
3+
export const GameSelectionTranslation: GameSelectionMessageFormat = {
4+
platformModal: {
5+
header: "Which store manages your game?",
6+
selectAction: "Select platform",
7+
},
8+
pageTitle: {
9+
title: {
10+
game: 'Game selection',
11+
server: 'Server selection',
12+
},
13+
subtitle: {
14+
game: 'Which game are you managing your mods for?',
15+
server: 'Which dedicated server are you managing your mods for?',
16+
}
17+
},
18+
migrationNotice: {
19+
requiresUpdate: 'An update to the manager has occurred and needs to do background work.',
20+
actionsDisabled: 'The options to select a game are disabled until the work has completed.',
21+
},
22+
tabs: {
23+
game: 'Game',
24+
server: 'Server'
25+
},
26+
actions: {
27+
select: {
28+
game: 'Select game',
29+
server: 'Select server'
30+
},
31+
setAsDefault: 'Set as default'
32+
},
33+
filter: {
34+
placeholder: {
35+
game: 'Search for a game',
36+
server: 'Search for a server',
37+
}
38+
}
39+
}
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
import {SplashMessageFormat} from "../../base/pages/SplashMessageFormat";
2+
3+
export const SplashTranslation: SplashMessageFormat = {
4+
pageTitle: 'Starting {appName}',
5+
gameUpdatesWarning: 'Game updates may break mods. If a new update has been released, please be patient.',
6+
menu: {
7+
helpLabel: 'Help',
8+
helpItems: {
9+
about: 'About',
10+
faq: 'FAQ'
11+
},
12+
},
13+
actions: {
14+
goBack: 'Go back',
15+
},
16+
content: {
17+
main: {
18+
didYouKnow: 'Did you know?',
19+
externalInstallWithModManager: `
20+
You can use the "Install with Mod Manager" button on
21+
Thunderstore to install mods using {appName}.
22+
`,
23+
goToThunderstore: 'Go to Thunderstore',
24+
exportProfile: `
25+
You can export the selected profile from the settings screen as either a file, or a code.
26+
This makes it easy to share your mod list with friends!
27+
`,
28+
havingTrouble: {
29+
title: 'Having trouble?',
30+
body: 'Send a screenshot of the error in the support channel of the r2modman Discord server.',
31+
serverLinkText: 'Join the {appName} Discord server',
32+
},
33+
},
34+
about: {
35+
title: 'About {appName}',
36+
creator: 'It\'s created by Ebkr.',
37+
techStack: {
38+
builtUsing: 'The application has been built using Quasar, which provides the following tech stack:',
39+
electron: 'Electron',
40+
node: 'NodeJS',
41+
vue: 'Vue 3',
42+
typescript: 'TypeScript',
43+
}
44+
},
45+
faq: {
46+
title: 'FAQ',
47+
howToGetStarted: {
48+
title: 'How do I get started?',
49+
body: 'Head on over to the Online tab and download your favourite mods. Click "Start modded" and enjoy.'
50+
},
51+
startingWithMods: {
52+
title: 'Starting the game with mods',
53+
body: `
54+
You have to start the game from within the manager.
55+
Starting through Steam will not work without manual changes.
56+
`
57+
}
58+
}
59+
},
60+
states: {
61+
preparing: 'Preparing',
62+
checkingForUpdates: 'Checking for updates',
63+
checkingForLocalCache: 'Checking for mod list in local cache',
64+
checkingForThunderstoreUpdates: 'Checking for mod list updates from Thunderstore',
65+
loadingLatestThunderstoreList: 'Loading latest mod list from Thunderstore',
66+
pruningLocalCache: 'Pruning removed mods from local cache',
67+
processingModList: 'Processing the mod list',
68+
}
69+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import {PlatformMessageFormat} from "../../base/platforms/PlatformMessageFormat";
2+
3+
export const PlatformTranslation: PlatformMessageFormat = {
4+
STEAM: "Steam",
5+
STEAM_DIRECT: "Steam",
6+
EPIC_GAMES_STORE: "Epic Games Store",
7+
OCULUS_STORE: "Oculus Store",
8+
ORIGIN: "Origin / EA App",
9+
XBOX_GAME_PASS: "Xbox Game Pass",
10+
OTHER: "Other",
11+
}

src/i18n/fr/index.ts

Lines changed: 8 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -1,120 +1,18 @@
1+
import {GameSelectionTranslation} from "./pages/GameSelectionTranslation";
2+
import {SplashTranslation} from "./pages/SplashTranslation";
3+
import {PlatformTranslation} from "./platforms/PlatformTranslation";
4+
15
const message = {
26
metadata: {
37
name: 'French',
48
locale: 'fr'
59
},
610
translations: {
711
pages: {
8-
gameSelection: {
9-
platformModal: {
10-
header: "Sélectionnez le magasin pour vos jeux",
11-
selectAction: "Sélectionnez le magasin"
12-
},
13-
pageTitle: {
14-
title: {
15-
game: 'Sélectionnez un jeu',
16-
server: 'Sélectionnez un serveur'
17-
},
18-
subtitle: {
19-
game: 'Sélectionnez un jeu pour gérer vos mods',
20-
server: 'Sélectionnez un serveur pour gérer vos mods'
21-
}
22-
},
23-
migrationNotice: {
24-
requiresUpdate: 'Une mise à jour du gestionnaire a eu lieu et un travail de fond est nécessaire.',
25-
actionsDisabled: 'Les actions de sélection de jeu sont désactivées jusqu\'à ce que le travail soit terminé.'
26-
},
27-
tabs: {
28-
game: 'Jeu',
29-
server: 'Serveur'
30-
},
31-
actions: {
32-
select: {
33-
game: 'Sélectionner',
34-
server: 'Sélectionner'
35-
},
36-
setAsDefault: 'Définir par défaut'
37-
},
38-
filter: {
39-
placeholder: {
40-
game: 'Rechercher un jeu',
41-
server: 'Rechercher un serveur'
42-
}
43-
}
44-
},
45-
splash: {
46-
pageTitle: 'Démarrage de {appName}',
47-
gameUpdatesWarning: 'Les mises à jour du jeu peuvent endommager les mods. Si une nouvelle mise à jour est disponible, merci de patienter.',
48-
menu: {
49-
helpLabel: 'Aide',
50-
helpItems: {
51-
about: 'À propos',
52-
faq: 'FAQ'
53-
}
54-
},
55-
actions: {
56-
goBack: 'Retour'
57-
},
58-
content: {
59-
main: {
60-
didYouKnow: 'Saviez-vous ?',
61-
externalInstallWithModManager: `
62-
Vous pouvez utiliser le bouton « Install with Mod Manager » sur Thunderstore pour installer des mods à l'aide de {appName}.
63-
`,
64-
goToThunderstore: 'Aller à Thunderstore',
65-
exportProfile: "Tu peux exporter le profil que tu as sélectionné depuis les paramètres d'écran, soit sous forme de fichier, soit en tant que code. Comme ça, c'est facile de partager ta liste de mods avec tes potes !",
66-
havingTrouble: {
67-
title: 'Besoin d\'aide ?',
68-
body: 'Envoie une capture d\'écran de l\'erreur sur le canal d\'assistance du serveur Discord de {appName}.',
69-
serverLinkText: 'Rejoignez le serveur Discord {appName}'
70-
}
71-
},
72-
about: {
73-
title: 'À propos de {appName}',
74-
creator: "L'application a été créée par Ebkr.",
75-
techStack: {
76-
builtUsing: "L'application a été conçue avec Quasar, qui fournit la stack technologique suivante :",
77-
electron: 'Electron',
78-
node: 'NodeJS',
79-
vue: 'Vue 3',
80-
typescript: 'TypeScript'
81-
}
82-
},
83-
faq: {
84-
title: 'FAQ',
85-
howToGetStarted: {
86-
title: 'Comment démarrer ?',
87-
body: "Rendez-vous dans l'onglet En ligne et téléchargez vos mods préférés. Cliquez sur « Démarrer moddé » et profitez-en."
88-
},
89-
startingWithMods: {
90-
title: 'Démarrer le jeu avec des mods',
91-
body: `
92-
Vous devez lancer le jeu depuis l'application.
93-
Le démarrer via Steam ne fonctionnera pas sans modifications manuelles.
94-
`
95-
}
96-
}
97-
},
98-
states: {
99-
preparing: 'Préparation',
100-
checkingForUpdates: 'Vérification des mises à jour',
101-
checkingForLocalCache: 'Vérification de la liste des mods dans le cache local',
102-
checkingForThunderstoreUpdates: 'Vérification des mises à jour de la liste des mods depuis Thunderstore',
103-
loadingLatestThunderstoreList: 'Chargement de la dernière liste de mods depuis Thunderstore',
104-
pruningLocalCache: 'Élagage des mods qui ne sont plus disponibles dans le cache local',
105-
processingModList: 'Traitement de la liste des mods'
106-
}
107-
},
108-
platforms: {
109-
STEAM: 'Steam',
110-
STEAM_DIRECT: 'Steam',
111-
EPIC_GAMES_STORE: 'Epic Games Store',
112-
OCULUS_STORE: 'Oculus / Meta Magasin',
113-
ORIGIN: 'Origin / EA App',
114-
XBOX_GAME_PASS: 'Xbox Game Pass',
115-
OTHER: 'Autre'
116-
}
117-
}
12+
gameSelection: GameSelectionTranslation,
13+
splash: SplashTranslation
14+
},
15+
platforms: PlatformTranslation
11816
}
11917
};
12018

0 commit comments

Comments
 (0)