added i18n, english and french for now

This commit is contained in:
2026-01-03 23:01:15 +01:00
parent f71d1ff9ac
commit 53b854d03a
19 changed files with 715 additions and 207 deletions

79
src/locales/en.ftl Normal file
View File

@@ -0,0 +1,79 @@
## Language
language = English
## Navigation
nav-chat = Chat
nav-friends = Friendlist
nav-notifications = Notifications
nav-account = Account
## Auth
auth-login-title = Login
auth-register-title = Register
auth-email = Email
auth-username = Username
auth-password = Password
auth-confirm-password = confirm password
auth-update-password =
auth-login-btn = Login
auth-register-btn = Create Account
auth-no-account = Don't have an account?
auth-has-account = Already have an account?
auth-error-unknown = An unknown error occurred
auth-error-password-match = Passwords do not match
auth-error-password-length = Password must be at least 8 characters long
auth-error-email-invalid = Please enter a valid email address
## Chat page
chat-no-room = Select a room to start talking
chat-input-placeholder = type a message
chat-invite-title = Invite People
chat-invite-receiver = Receiver username
chat-invite-friend-too = Also send a friend request
chat-invite-send = Send
chat-room-list-title = Rooms
chat-room-owner = by {$owner}
chat-create-title = Create room
chat-create-name-placeholder = Room name
chat-create-global = Global room
chat-create-submit = Create
## Friends page
friends-title = Your friends
friends-add-title = Add Friend
friends-send-request = Send Request
friends-list-header = Your Friends
friends-error-required = Username is required.
## Notifications page
notifications-title = Notifications
notifications-friend-requests = Friend Requests
notifications-room-invites = Room Invites
notifications-no-requests = No pending requests
notifications-no-invites = No pending invites
notifications-accept = Accept
notifications-join = Join
notifications-invite-from = from: {$user}
notifications-error-friend = An error occurred while accepting the request.
notifications-error-room = An error occurred while accepting the invite.
## Account page
account-title = Your Account
account-label-username = Username:
account-label-email = Email:
account-update-btn = Update
account-logout-btn = Logout
account-loading = Loading account details...
account-update-modal-title = Update your Account
account-update-subtitle = Only fill in the fields you wish to change.
account-new-password = New Password
account-new-password-confirm = Confirm new password
account-update-save = Save Changes
account-updating = Updating...
account-language = Language
account-error-required = Username and Email are required.
account-error-failed = Update failed
## Shared
shared-cancel = Cancel
shared-error = An error occurred

78
src/locales/fr.ftl Normal file
View File

@@ -0,0 +1,78 @@
## Language
language = Français
## Navigation
nav-chat = Messagerie
nav-friends = Amis
nav-notifications = Notifications
nav-account = Compte
## Auth
auth-login-title = Connexion
auth-register-title = Inscription
auth-email = Email
auth-username = Nom d'utilisateur
auth-password = Mot de passe
auth-confirm-password = confirmer le mot de passe
auth-login-btn = Se connecter
auth-register-btn = Créer un compte
auth-no-account = Pas encore de compte ?
auth-has-account = Déjà un compte ?
auth-error-unknown = Une erreur inconnue est survenue
auth-error-password-match = Les mots de passe ne correspondent pas
auth-error-password-length = Le mot de passe doit faire au moins 8 caractères
auth-error-email-invalid = Veuillez entrer une adresse email valide
## Chat page
chat-no-room = Sélectionnez un salon pour commencer à discuter
chat-input-placeholder = tapez un message
chat-invite-title = Inviter des gens
chat-invite-receiver = Nom d'utilisateur
chat-invite-friend-too = Envoyer aussi une demande d'ami
chat-invite-send = Envoyer
chat-room-list-title = Salons
chat-room-owner = par {$owner}
chat-create-title = Créer un salon
chat-create-name-placeholder = Nom du salon
chat-create-global = Salon public
chat-create-submit = Créer
## Friends page
friends-title = Vos amis
friends-add-title = Ajouter un ami
friends-send-request = Envoyer
friends-list-header = Vos Amis
friends-error-required = Le nom d'utilisateur est requis.
## Notifications page
notifications-title = Notifications
notifications-friend-requests = Demandes d'amis
notifications-room-invites = Invitations
notifications-no-requests = Aucune demande en attente
notifications-no-invites = Aucune invitation en attente
notifications-accept = Accepter
notifications-join = Rejoindre
notifications-invite-from = de : {$user}
notifications-error-friend = Erreur lors de l'acceptation de la demande.
notifications-error-room = Erreur lors de l'acceptation de l'invitation.
## Account page
account-title = Votre Compte
account-label-username = Nom d'utilisateur :
account-label-email = Email :
account-update-btn = Modifier
account-logout-btn = Déconnexion
account-loading = Chargement du compte...
account-update-modal-title = Modifier votre compte
account-update-subtitle = Remplissez uniquement ce que vous souhaitez changer.
account-new-password = Nouveau mot de passe
account-new-password-confirm = Confirmer le mot de passe
account-update-save = Enregistrer
account-updating = Mise à jour...
account-language = Langue
account-error-required = Le nom d'utilisateur et l'email sont requis.
account-error-failed = Échec de la mise à jour
## Shared
shared-cancel = Annuler
shared-error = Une erreur est survenue