Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add French translation. #667

Merged
merged 2 commits into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions ui/src/lib/i18n/fr.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import type { Translations } from './translation';

const translations: Translations = {
walk: 'Marche',
bike: 'Vélo',
car: 'Voiture',
from: 'De',
to: 'À',
arrival: 'Arrivée',
departure: 'Départ',
duration: 'Durée',
arrivals: 'Arrivées',
later: 'plus tard',
earlier: 'plus tôt',
departures: 'Départ',
switchToArrivals: 'Basculer vers les arrivées',
switchToDepartures: 'Basculer vers les départs',
track: 'Voie',
arrivalOnTrack: 'Arrivée sur la voie',
tripIntermediateStops: (n: number) => {
switch (n) {
case 0:
return 'Aucun arrêt intermédiaire';
case 1:
return '1 arrêt intermédiaire';
default:
return `${n} arrêts intermédiaires`;
}
},
sharingProvider: 'Fournisseur'
};

export default translations;
4 changes: 3 additions & 1 deletion ui/src/lib/i18n/translation.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { browser } from '$app/environment';
import en from './en';
import de from './de';
import fr from './fr';

export type Translations = {
walk: string;
Expand All @@ -26,7 +27,8 @@ export type Translations = {
const translations: Map<string, Translations> = new Map(
Object.entries({
en,
de
de,
fr
})
);

Expand Down
Loading