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