Skip to content

Commit 98ccc5d

Browse files
authored
feat(i18n): french translation (#83)
Co-Authored-By: xonel@github.com
1 parent 8fab0ea commit 98ccc5d

File tree

7 files changed

+59
-4
lines changed

7 files changed

+59
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bananas",
3-
"version": "0.0.20",
3+
"version": "0.0.21",
44
"description": "Bananas Screen Sharing is a simple and easy-to-use screen sharing tool for Mac, Windows, and Linux.",
55
"main": "./out/main/index.js",
66
"author": {

src/i18n/fr/index.ts

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
import type { BaseTranslation } from '../i18n-types'
2+
3+
const fr = {
4+
about: 'À propos',
5+
advanced: 'Avancé',
6+
basic: 'De base',
7+
cancel: 'Annuler',
8+
choose_a_color: 'Choisir une couleur',
9+
code_of_conduct: 'Code de conduite',
10+
color: 'Couleur',
11+
connect: 'Connecter',
12+
connection_established: 'Connexion établie',
13+
copy_my_connection_string: 'Copier ma chaîne de connexion',
14+
disconnect: 'Déconnecter',
15+
fullscreen: 'Plein écran',
16+
host_a_session: 'Héberger une session',
17+
host_connection_string: 'Chaîne de connexion de l’hôte',
18+
hosting_a_session: 'Hébergement d’une session',
19+
is_microphone_active_on_connect: 'Le microphone est-il actif à la connexion',
20+
join_a_session: 'Rejoindre une session',
21+
joined_a_session: 'Session rejointe',
22+
language: 'Langue',
23+
language_description:
24+
"Choisissez votre langue préférée (après avoir changé la langue, vous devez redémarrer l'application)",
25+
media: 'Médias',
26+
microphone_active: 'Microphone actif',
27+
microphone_inactive: 'Microphone inactif',
28+
not_streaming_your_display: 'Ne diffuse pas votre écran',
29+
participant_connection_string: 'Chaîne de connexion du participant',
30+
privacty_policy: 'Politique de confidentialité',
31+
remote_cursors_disabled: 'Curseurs distants désactivés',
32+
remote_cursors_enabled: 'Curseurs distants activés',
33+
remote_screen: 'Écran distant',
34+
report_a_bug: 'Signaler un bug',
35+
save: 'Enregistrer',
36+
see_the_code: 'Voir le code',
37+
session_started: 'Session commencée',
38+
settings: 'Paramètres',
39+
shoulders_of_giants: 'Épaules des géants',
40+
shoulders_of_giants_description:
41+
'Bananas Screen Sharing est construit sur les projets open-source suivants (dans un ordre aléatoire)',
42+
start_a_new_session: 'Commencer une nouvelle session',
43+
streaming_your_display: 'Diffusion de votre écran',
44+
stun_turn_server_objects: 'Objets du serveur STUN/TURN (séparés par des nouvelles lignes)',
45+
terms_of_service: 'Conditions de service',
46+
username: 'Nom d’utilisateur',
47+
website: 'Site web',
48+
zoom_in: 'Zoomer',
49+
zoom_out: 'Dézoomer'
50+
} satisfies BaseTranslation
51+
52+
export default fr

src/i18n/i18n-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { BaseTranslation as BaseTranslationType, LocalizedString } from 'ty
55
export type BaseTranslation = BaseTranslationType
66
export type BaseLocale = 'en'
77

8-
export type Locales = 'de' | 'en' | 'zh'
8+
export type Locales = 'de' | 'en' | 'fr' | 'zh'
99

1010
export type Translation = RootTranslation
1111

src/i18n/i18n-util.async.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { loadedFormatters, loadedLocales, locales } from './i18n-util'
88
const localeTranslationLoaders = {
99
de: () => import('./de'),
1010
en: () => import('./en'),
11+
fr: () => import('./fr'),
1112
zh: () => import('./zh')
1213
}
1314

src/i18n/i18n-util.sync.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ import { loadedFormatters, loadedLocales, locales } from './i18n-util'
77

88
import de from './de'
99
import en from './en'
10+
import fr from './fr'
1011
import zh from './zh'
1112

1213
const localeTranslations = {
1314
de,
1415
en,
16+
fr,
1517
zh
1618
}
1719

src/i18n/i18n-util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import type { Formatters, Locales, Translations, TranslationFunctions } from './
1414

1515
export const baseLocale: Locales = 'en'
1616

17-
export const locales: Locales[] = ['de', 'en', 'zh']
17+
export const locales: Locales[] = ['de', 'en', 'fr', 'zh']
1818

1919
export const isLocale = (locale: string): locale is Locales => locales.includes(locale as Locales)
2020

src/renderer/src/Settings.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
let usernameValue: string = 'Banana Joe'
88
let colorValue: string = '#ffffff'
99
let language = 'en'
10-
const languageOptions = ['en', 'de', 'zh']
10+
const languageOptions = ['en', 'de', 'fr', 'zh']
1111
let iceServersValue: string = '{ "urls": "stun:stun.l.google.com:19302" }'
1212
let isUsernameValid = false
1313
let isColorValid = false

0 commit comments

Comments
 (0)