From 136cfc4e252fb82779a7051c84e01594b451cf37 Mon Sep 17 00:00:00 2001 From: Shea Date: Thu, 16 Jul 2026 13:06:54 +0300 Subject: [PATCH] make full romanian file, and delete fr and de files as i do not speak either to make the files properly Signed-off-by: Shea --- i18next.config.ts | 7 + public/locales/de.json | 118 -------- public/locales/en.json | 18 +- public/locales/fr.json | 118 -------- public/locales/ro.json | 273 ++++++++++++++++++ .../components/DeviceVerificationSetup.tsx | 9 +- .../DirectInvitePrompt.tsx | 9 +- src/app/features/room/RoomCallButton.test.tsx | 5 +- .../features/settings/cosmetics/Cosmetics.tsx | 48 +-- src/app/features/settings/general/General.tsx | 48 +++ src/app/features/settings/settingsLink.ts | 1 + src/app/i18n.ts | 6 +- 12 files changed, 373 insertions(+), 287 deletions(-) create mode 100644 i18next.config.ts delete mode 100644 public/locales/de.json delete mode 100644 public/locales/fr.json create mode 100644 public/locales/ro.json diff --git a/i18next.config.ts b/i18next.config.ts new file mode 100644 index 000000000..fc2fbae4f --- /dev/null +++ b/i18next.config.ts @@ -0,0 +1,7 @@ +export default { + locales: ['en', 'ro'], + extract: { + input: 'src/**/*.tsx', + output: 'public/locales/{{language}}/{{namespace}}.json', + }, +}; diff --git a/public/locales/de.json b/public/locales/de.json deleted file mode 100644 index 7e363da3a..000000000 --- a/public/locales/de.json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "Organisms": { - "RoomCommon": { - "changed_room_name": " hat den Raum Name geändert" - } - }, - "Settings": { - "device_verification": { - "error_uia_action_without_data": "Unerwarteter Fehler! UIA-Aktion wird ohne Daten ausgeführt.", - "authentication_failed_failed_to_setup_device_verification": "Authentifizierung fehlgeschlagen! Fehler beim Einrichten der Geräteverifizierung.", - "unexpected_error_crypto_module_not_found": "Unerwarteter Fehler! \nKryptomodul nicht gefunden!", - "unexpected_error_failed_to_create_recovery_key": "Unexpected Error! Failed to create recovery key.", - "generate_a": "Generate a", - "for_verifying_identity_if_you_do_not_have_access_to_other_devices_additiona": "for verifying identity if you do not have access to other devices. Additionally, setup a passphrase as a memorable alternative.", - "authentication_steps_to_perform_this_action_are_not_supported_by_client": "Authentication steps to perform this action are not supported by client.", - "store_the_recovery_key_in_a_safe_place_for_future_use_as_you_will_need_it_t": "Store the Recovery Key in a safe place for future use, as you will need it to verify your identity if you do not have access to other devices.", - "setup_device_verification": "Richten Sie die Geräteverifizierung ein", - "reset_device_verification": "Geräteverifizierung zurücksetzen", - "resetting_device_verification_is_permanent": "Resetting device verification is permanent.", - "anyone_you_have_verified_with_will_see_security_alerts_and_your_encryption": "Anyone you have verified with will see security alerts and your encryption backup will be lost. You almost certainly do not want to do this, unless you have lost", - "and_every_device_you_can_verify_from": "and every device you can verify from.", - "please_accept_the_request_from_other_device": "Please accept the request from other device.", - "click_accept_to_start_the_verification_process": "Click accept to start the verification process.", - "waiting_for_request_to_be_accepted": "Waiting for request to be accepted...", - "confirm_the_emoji_below_are_displayed_on_both_devices_in_the_same_order": "Confirm the emoji below are displayed on both devices, in the same order:", - "they_match": "Sie passen zusammen", - "do_not_match": "Do not Match", - "starting_verification_using_emoji_comparison": "Verifizierung mit Emoji-Vergleich wird gestartet...", - "your_device_is_verified": "Your device is verified.", - "verification_has_been_canceled": "Verification has been canceled.", - "device_verification": "Device Verification", - "unexpected_error_verification_is_started_but_verifier_is_missing": "Unerwarteter Fehler! \nDie Verifizierung wurde gestartet, aber der Prüfer fehlt.", - "verification_request_has_been_accepted": "Verification request has been accepted.", - "waiting_for_the_response_from_other_device": "Waiting for the response from other device..." - } - }, - "General": { - "continue": "Weitermachen", - "passphrase": "Passphrase", - "optional": "optional", - "unexpected_error": "Unerwarteter Fehler!", - "recovery_key": "Wiederherstellungsschlüssel", - "download": "Herunterladen", - "copy": "kopieren", - "hide": "Verstecken", - "show": "Zeigen", - "recovery_passphrase": "Wiederherstellungspassphrase", - "reset": "Zurücksetzen", - "close": "Schließen", - "accept": "Akzeptieren", - "okay": "Verstanden", - "retry": "Wiederholen", - "user": "Benutzer", - "delete": "Löschen", - "dismiss": "Verwerfen", - "nickname": "Spitzname", - "save": "Speichern", - "clear": "Leeren", - "edit_nickname": "Spitzname bearbeiten", - "set_nickname": "Spitznamen festlegen", - "cancel": "Abbrechen" - }, - "RoomView": { - "failed_to_load_history": "Failed to load history.", - "failed_to_load_messages": "Failed to load messages.", - "jump_to_unread": "Zu „Ungelesen“ wechseln", - "mark_as_read": "Als gelesen markieren", - "new_messages": "Neue Nachrichten", - "jump_to_latest": "Zum Neuesten springen", - "call_started_by": "Anruf gestartet von", - "start_voice_call": "Sprachanruf starten", - "typing": { - "are_typing": "schreiben...", - "typing_sep_word": " and " - }, - "is_typing": "tippt...", - "close_threads": "Themen schließen", - "search_threads": "Threads durchsuchen...", - "clear_search": "Suche löschen", - "Threads": { - "no_threads_match_your_search": "No threads match your search.", - "no_threads_yet": "No threads yet.", - "jump": "Springen", - "threads": "Themen", - "thread": "Thema", - "no_replies_yet_start_the_thread_below": "No replies yet. Start the thread below!" - }, - "join_new_room": "Neuem Raum beitreten", - "this_room_has_been_replaced_and_is_no_longer_active": "This room has been replaced and is no longer active.", - "failed_to_join_replacement_room": "Failed to join replacement room!", - "open_new_room": "Neuen Raum öffnen", - "scroll_to_top": "Nach oben scrollen", - "Message": { - "pin_message": "Nachricht anpinnen", - "unpin_message": "Nachricht lösen", - "forwarded_private_message": "Forwarded private message", - "forwarded_from_earlier_in_this_room": "Forwarded from earlier in this room", - "forwarded_from_another_room": "Aus einem anderen Raum weitergeleitet", - "jump_to_original": "jump to original", - "failed_to_send": "Senden fehlgeschlagen.", - "only_you_can_see_this": "Only you can see this.", - "add_reaction": "Add Reaction", - "add_to_user_sticker_pack": "Add to User Sticker Pack", - "reply": "antworten", - "reply_in_thread": "Reply in Thread", - "edit_message": "Edit Message", - "Editor": { - "edit_message": "Edit message..." - } - }, - "Reactions": { - "reacted_with": "Reacted with" - } - }, - "RoomInput": { - "recording_duration": "Aufnahmedauer:" - } -} diff --git a/public/locales/en.json b/public/locales/en.json index ae754c514..c1006cccc 100644 --- a/public/locales/en.json +++ b/public/locales/en.json @@ -10,8 +10,8 @@ "authentication_failed_failed_to_setup_device_verification": "Authentication failed! Failed to setup device verification.", "unexpected_error_crypto_module_not_found": "Unexpected Error! Crypto module not found!", "unexpected_error_failed_to_create_recovery_key": "Unexpected Error! Failed to create recovery key.", - "generate_a": "Generate a", - "for_verifying_identity_if_you_do_not_have_access_to_other_devices_additiona": "for verifying identity if you do not have access to other devices. Additionally, setup a passphrase as a memorable alternative.", + "generate_a_recovery_key": "Generate a recovery key for verifying identity if you do not have access to other devices. Additionally, setup a passphrase as a memorable alternative", + "optional_passphrase": "Passphrase (optional)", "authentication_steps_to_perform_this_action_are_not_supported_by_client": "Authentication steps to perform this action are not supported by client.", "store_the_recovery_key_in_a_safe_place_for_future_use_as_you_will_need_it_t": "Store the Recovery Key in a safe place for future use, as you will need it to verify your identity if you do not have access to other devices.", "setup_device_verification": "Setup Device Verification", @@ -65,6 +65,10 @@ "assign_unique_colors_to_users_based_on_their_id_does_not_override_room_spac": "Assign unique colors to users based on their ID. Does not override room/space custom colors. Will override default role colors.", "show_pronoun_pills": "Show Pronoun Pills", "display_user_pronouns_in_the_message_timeline": "Display user pronouns in the message timeline.", + "max_pronoun_pills": "Max Pronoun Pills", + "maximum_number_of_pronoun_pills": "Maximum number of pronoun pills shown per user in the timeline. Additional pronouns appear behind the ... pill.", + "max_pronoun_pill_length": "Max Pronoun Pill Length", + "maximum_pronoun_pill_length": "Maximum characters shown in each pronoun pill before truncation.", "pronoun_pills_for_all": "Pronoun Pills for All", "attempts_to_convert_pronouns_in_names_into_pills_e_g_they_them_or_it_its_tu": "Attempts to convert pronouns in names into pills (e.g. [they/them] or (it/its) turns into a pill).", "render_custom_profile_cards": "Render Custom Profile Cards", @@ -218,10 +222,6 @@ "jump_to_original": "jump to original", "failed_to_send": "Failed to send.", "only_you_can_see_this": "Only you can see this.", - "add_reaction": "Add Reaction", - "add_to_user_sticker_pack": "Add to User Sticker Pack", - "reply": "Reply", - "reply_in_thread": "Reply in Thread", "edit_message": "Edit Message", "Editor": { "edit_message": "Edit message..." @@ -261,11 +261,7 @@ }, "Room": { "DirectInvite": { - "this_is_a": "This is a", - "direct_message": "Direct Message", - "room_intended_for_a_conversation_between_two_persons_would_you_like_to_conv": "room, intended for a conversation between two persons. Would you like to convert it into a", - "group_chat": "group chat", - "before_continuing": "before continuing?", + "direct_message_invite_prompt": "This is a Direct Message room, intended for a conversation between two persons. Would you like to convert it into a group chat before continuing?", "failed_to_convert_direct_message_to_room": "Failed to convert direct message to room!", "convert_to_group_chat_and_invite": "Convert to Group Chat and Invite", "invite_to_direct_message_anyway": "Invite to Direct Message anyway", diff --git a/public/locales/fr.json b/public/locales/fr.json deleted file mode 100644 index ae750caa2..000000000 --- a/public/locales/fr.json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "Organisms": { - "RoomCommon": { - "changed_room_name": " changed room name" - } - }, - "Settings": { - "device_verification": { - "error_uia_action_without_data": "Unexpected Error! UIA action is perform without data.", - "authentication_failed_failed_to_setup_device_verification": "Authentication failed! Failed to setup device verification.", - "unexpected_error_crypto_module_not_found": "Unexpected Error! Crypto module not found!", - "unexpected_error_failed_to_create_recovery_key": "Unexpected Error! Failed to create recovery key.", - "generate_a": "Generate a", - "for_verifying_identity_if_you_do_not_have_access_to_other_devices_additiona": "for verifying identity if you do not have access to other devices. Additionally, setup a passphrase as a memorable alternative.", - "authentication_steps_to_perform_this_action_are_not_supported_by_client": "Authentication steps to perform this action are not supported by client.", - "store_the_recovery_key_in_a_safe_place_for_future_use_as_you_will_need_it_t": "Store the Recovery Key in a safe place for future use, as you will need it to verify your identity if you do not have access to other devices.", - "setup_device_verification": "Setup Device Verification", - "reset_device_verification": "Reset Device Verification", - "resetting_device_verification_is_permanent": "Resetting device verification is permanent.", - "anyone_you_have_verified_with_will_see_security_alerts_and_your_encryption": "Anyone you have verified with will see security alerts and your encryption backup will be lost. You almost certainly do not want to do this, unless you have lost", - "and_every_device_you_can_verify_from": "and every device you can verify from.", - "please_accept_the_request_from_other_device": "Please accept the request from other device.", - "click_accept_to_start_the_verification_process": "Click accept to start the verification process.", - "waiting_for_request_to_be_accepted": "Waiting for request to be accepted...", - "confirm_the_emoji_below_are_displayed_on_both_devices_in_the_same_order": "Confirm the emoji below are displayed on both devices, in the same order:", - "they_match": "They Match", - "do_not_match": "Do not Match", - "starting_verification_using_emoji_comparison": "Starting verification using emoji comparison...", - "your_device_is_verified": "Your device is verified.", - "verification_has_been_canceled": "Verification has been canceled.", - "device_verification": "Device Verification", - "unexpected_error_verification_is_started_but_verifier_is_missing": "Unexpected Error! Verification is started but verifier is missing.", - "verification_request_has_been_accepted": "Verification request has been accepted.", - "waiting_for_the_response_from_other_device": "Waiting for the response from other device..." - } - }, - "General": { - "continue": "Continue", - "passphrase": "Passphrase", - "optional": "optional", - "unexpected_error": "Unexpected Error!", - "recovery_key": "Recovery Key", - "download": "Download", - "copy": "Copy", - "hide": "Hide", - "show": "Show", - "recovery_passphrase": "Recovery Passphrase", - "reset": "Reset", - "close": "Close", - "accept": "Accept", - "okay": "Okay", - "retry": "Retry", - "user": "User", - "delete": "Delete", - "dismiss": "Dismiss", - "nickname": "Nickname", - "save": "Save", - "clear": "Clear", - "edit_nickname": "Edit Nickname", - "set_nickname": "Set Nickname", - "cancel": "Cancel" - }, - "RoomView": { - "failed_to_load_history": "Failed to load history.", - "failed_to_load_messages": "Failed to load messages.", - "jump_to_unread": "Jump to Unread", - "mark_as_read": "Mark as Read", - "new_messages": "New Messages", - "jump_to_latest": "Jump to Latest", - "call_started_by": "Call started by", - "start_voice_call": "Start Voice Call", - "typing": { - "are_typing": " are typing...", - "typing_sep_word": " and " - }, - "is_typing": "is typing...", - "close_threads": "Close threads", - "search_threads": "Search threads...", - "clear_search": "Clear search", - "Threads": { - "no_threads_match_your_search": "No threads match your search.", - "no_threads_yet": "No threads yet.", - "jump": "Jump", - "threads": "Threads", - "thread": "Thread", - "no_replies_yet_start_the_thread_below": "No replies yet. Start the thread below!" - }, - "join_new_room": "Join New Room", - "this_room_has_been_replaced_and_is_no_longer_active": "This room has been replaced and is no longer active.", - "failed_to_join_replacement_room": "Failed to join replacement room!", - "open_new_room": "Open New Room", - "scroll_to_top": "Scroll to Top", - "Message": { - "pin_message": "Pin Message", - "unpin_message": "Unpin Message", - "forwarded_private_message": "Forwarded private message", - "forwarded_from_earlier_in_this_room": "Forwarded from earlier in this room", - "forwarded_from_another_room": "Forwarded from another room", - "jump_to_original": "jump to original", - "failed_to_send": "Failed to send.", - "only_you_can_see_this": "Only you can see this.", - "add_reaction": "Add Reaction", - "add_to_user_sticker_pack": "Add to User Sticker Pack", - "reply": "Reply", - "reply_in_thread": "Reply in Thread", - "edit_message": "Edit Message", - "Editor": { - "edit_message": "Edit message..." - } - }, - "Reactions": { - "reacted_with": "Reacted with" - } - }, - "RoomInput": { - "recording_duration": "Recording duration:" - } -} diff --git a/public/locales/ro.json b/public/locales/ro.json new file mode 100644 index 000000000..081ec24f5 --- /dev/null +++ b/public/locales/ro.json @@ -0,0 +1,273 @@ +{ + "Organisms": { + "RoomCommon": { + "changed_room_name": " a schimbat numele camerei" + } + }, + "Settings": { + "device_verification": { + "error_uia_action_without_data": "Eroare neașteptată! Actiunea UIA este facută fară date.", + "authentication_failed_failed_to_setup_device_verification": "Autentificare eșuată! Verificarea dispozitivului a eșuat.", + "unexpected_error_crypto_module_not_found": "Eroare neașteptată! Modulul Crypto nu poate fi accessat!", + "unexpected_error_failed_to_create_recovery_key": "Eroare neașteptată! Incercarea de a crea o cheie de rezervă a eșuat.", + "generate_a_recovery_key": "Generați o cheie de recuperare pentru a îți verifica identitatea in cazul in care nu ai access la alte dispozitive. Adițional, setează o parolă ca o alternativă mai ușoară de amintit.", + "optional_passphrase": "Parolă (optională)", + "authentication_steps_to_perform_this_action_are_not_supported_by_client": "Pași pentru autentificare nu sunt acceptați de această aplicație.", + "store_the_recovery_key_in_a_safe_place_for_future_use_as_you_will_need_it_t": "Salvează cheia de recuperare intr-un loc sigur pentru a fi accesată in viitor. Vei avea nevoie de ea sa îți verifici identitatea in cazul in care nu ai acces la alte dispozitive.", + "setup_device_verification": "Configurează verificare dispozitivelor.", + "reset_device_verification": "Reseteaza Identitea de verificare a dispozitivelor", + "resetting_device_verification_is_permanent": "Resetarea verificării dispozitivelor este permanentă!", + "anyone_you_have_verified_with_will_see_security_alerts_and_your_encryption": "Toată lumea cu care ai vorbit va primii o alertă de securitate si encriptia de rezervă va fi pierdută. Aproape sigur nu vrei să faci asta, singura situație în care ai vrea să faci asta este daca ai pierdut", + "and_every_device_you_can_verify_from": "și orice alt dispozitiv cu care ai putea verifica.", + "please_accept_the_request_from_other_device": "Acceptați cererea dintr-un alt dispozitiv.", + "click_accept_to_start_the_verification_process": "Apasa pe 'Acceptă' pentru a începe procesul de verificare.", + "waiting_for_request_to_be_accepted": "Asteptăm ca cererea să fie acceptată...", + "confirm_the_emoji_below_are_displayed_on_both_devices_in_the_same_order": "Confirmă ca emoticoanele prezentate ulterior sunt aceleași pe ambele dispozitive, și în aceași ordine:", + "they_match": "Se potrivesc", + "do_not_match": "Sunt diferite", + "starting_verification_using_emoji_comparison": "Începe verificare prin comparare de emoticoane...", + "your_device_is_verified": "Dispozitivul acesta e verificat.", + "verification_has_been_canceled": "Verificarea a forst oprită.", + "device_verification": "Verificare dispozitiv", + "unexpected_error_verification_is_started_but_verifier_is_missing": "Eroare neașteptată! Verificarea a început dar verificatorul a dispărut.", + "verification_request_has_been_accepted": "Cererea de verificare a fost acceptată.", + "waiting_for_the_response_from_other_device": "Așteptăm pentru un răspuns de la celălalt dispozitiv..." + }, + "PerMessageProfiles": { + "profile_id": "ID profil:", + "display_name": "Nume Afișat:" + }, + "Profile": { + "avatar_and_upload": "Imagine de profil si încărcare", + "profile_avatar": "Imagine de profil", + "avatar_fallback": "Imagine de rezervă", + "upload_avatar_image": "Încarcă imagine de profil", + "display_name_input": "Afiș introducere nume de profil", + "reset_display_name": "Resetează numele afișat" + }, + "Cosmetics": { + "light_and_dark": "Luminos & Întunecat", + "light_only": "Doar luminos", + "dark_only": "Doar întunecat", + "off": "Niciodată", + "jumbo_emoji": "Emojiuri Jumbo", + "jumbo_emoji_size": "Mărime Emojiuri Jumbo", + "adjust_the_size_of_emojis_sent_without_text": "Schimbă mărimea emojiurilor trimise fâră text.", + "privacy_and_security": "Confidențialitate și Securitate", + "blur_media": "Estompază media.", + "blurs_images_and_videos_in_the_timeline": "Estompează imaginile si videourile din mesaje.", + "blur_avatars": "Estompează avatar-uri", + "blurs_user_profile_pictures_and_room_icons": "Estompează imaginile de profil si iconițele camerelor.", + "blur_emotes": "Estompează emoticoane", + "blurs_emoticons_within_messages": "Estompează emoticoanele din mesaje.", + "identity": "Identitate", + "colorful_names": "Nume Colorate Aleatoriu", + "assign_unique_colors_to_users_based_on_their_id_does_not_override_room_spac": "Atribuie culori unici utilizatorilor pe baza ID-ului lor. Această setare nu va inlocuii culorile atribuite de cameră/spațiu, dar va inlocuii culoarea rolului de bază", + "show_pronoun_pills": "Arată pilule de pronume", + "display_user_pronouns_in_the_message_timeline": "Arata pronumele utilizatorilor in mesaje", + "max_pronoun_pills": "Număr maxim de pilule de pronume", + "maximum_number_of_pronoun_pills": "Numărul maxim de pilule de pronume prezente de persoană in conversatie. Alte pronume apar după pilula intitulată '...'", + "max_pronoun_pill_length": "Lungimea maximă a pronumelor de profil", + "maximum_pronoun_pill_length": "Numărul maxim de litere in fiecare pronume înainte de a fi trunchiată.", + "pronoun_pills_for_all": "Pilule de pronume pentru toată lumea", + "attempts_to_convert_pronouns_in_names_into_pills_e_g_they_them_or_it_its_tu": "Încearcă sa transformi pronumele din nume in pilule (ex. [el/lui] sau [ea/iei] este transformat in pilulă).", + "render_custom_profile_cards": "Redă carduri de profil personalizate.", + "choose_whose_profile_card_colors_to_show_everyone_with_a_scheme_only_light": "Alege când sa se redea cardul de profil: pentru toată lumea, doar teme întunecate, doar teme luminoase, sau nu le reda deloc.", + "render_global_username_colors": "Redă culorile generale numelor persoanelor", + "display_the_username_colors_anyone_can_set_in_their_account_settings": "Redă culorile numelor tuturor persoanelor care au fost setate de acestea.", + "render_space_room_username_colors": "Redă culorile numelor setate de Cameră/Spațiu.", + "display_the_username_colors_that_can_be_set_with_color": "Redă culorile numelor care pot fi setate cu /color.", + "render_space_room_fonts": "Redă fonturile Camerei/Spațiului.", + "display_the_username_fonts_that_can_be_set_with_font": "Redă fontul numelor care pot fi setate cu /font.", + "consistent_icon_style": "Stil al icoanelor consistent.", + "harmonize_icon_appearance_with_background_fill": "Armonizează forma icoanelor cu o culoare de fundal.", + "extra_small": "Foarte mic", + "none_same_size_as_text": "Bază (aceași mărime ca textul)", + "small": "Mic", + "normal": "Normal", + "large": "Mari", + "extra_large": "Foarte mari", + "language_specific_pronouns": "Pronume specifice limbii", + "show_pronouns_only_in_selected_language": "Redă doar pronumele in limba selectată", + "if_enabled_pronouns_are_only_shown_when_they_match_your_selected_language_t": "Dacă activat, doar pronumele in limba selectată de tine vor apărea. Asta ajuta dacă contactele tale au setata pronume in limbi diferite. Nu afecteaza cum pronumele setate de tine sunt împărtășite.", + "selected_language_for_pronouns": "Limbi selectate pentru pronume.", + "the_language_to_show_pronouns_for_when_the_above_setting_is_enabled": "Limbile in care pronumele vor fi redate pentru setarea de asupra.", + "language_code_e_g_en_de_en_de": "Codul limbii (ex. 'ro', 'de', 'ro,de')" + }, + "save_bandwidth_for_sticker_and_emoji_images": "Reduceți Consumul rețelei pentru stickere si emoticoane", + "enable_bandwidth_saving_for_stickers_and_emojis": "Porneste salvare de 'bandwidth' pentru stickere si emoticoane", + "if_enabled_sticker_and_emoji_images_will_be_optimized_to_save_bandwidth_thi": "Dacă pornit, stickerele si emoticoanele vor fi optimizate pentru a consuma mai puțin internet. Asta ajută consumul de date când văzănd aceste imagini, dar crește costul de computare a server-ului.", + "personas_per_message_profiles": "Personalități. (Profiluri per-mesaj)", + "show_personas_tab": "Prezintă meniul de Personalități", + "enables_the_personas_tab_in_the_settings_menu_for_per_message_profiles": "Adauga meniul de personalități in bara de setări pentru profile specifice fiecărui mesaj.", + "experimental": "Experimental", + "the_features_listed_below_may_be_unstable_or_incomplete": "Opțiunile listate ulterior pot fi instabile sau incomplete,", + "use_at_your_own_risk": "folosește la riscul vostru", + "please_report_any_new_issues_potentially_caused_by_these_features": "Vă rugăm sa raportati orice probleme noi cauzate potențial de aceste opțiuni! Mersi!", + "enable_sharing_of_encrypted_history": "Activează împărtășirea de Istorie Criptată.", + "enable_the_sharehistory_command": "Activează comanda de /sharehistory", + "if_enabled_this_command_will_allow_users_to_share_encrypted_history_with_ot": "Dacă activată, această optiune va permite utilizatorilor să impărtașească istoria criptată cu alți utilizatori noi, per MSC4268.", + "disable_sharehistory_command": "Dezactivează comanda /sharehistory", + "enable_sharehistory_command": "Activează comanda /sharehistory", + "General": { + "formatting": "Formatare", + "month": "Luna", + "day_of_the_week": "Ziua săptămănii", + "day_of_the_week_sunday_0": "Ziua săptămănii (Duminică = 0)", + "two_letter_day_name": "Numele zilei cu 2 litere", + "short_day_name": "Numele zilei scurt", + "full_day_name": "Numele zilei întreg", + "day_of_the_month": "Ziua din lună", + "full_month_name": "Numele întreg al lunii", + "short_month_name": "Numele scurt al lunii", + "the_month": "Luna", + "two_digit_month": "Luna cu 2 cifre", + "four_digit_year": "Anul cu 4 cifre", + "two_digit_year": "Anul cu 2 cifre" + }, + "KeyboardShortcuts": { + "jump_to_the_highest_priority_unread_room": "Dute la camera cu cea mai ridicata prioritate de necitire", + "go_to_next_unread_room_cycle": "Dute la următoarea camera necitită (urmează un ciclu)", + "go_to_previous_unread_room_cycle": "Go to previous unread room (urmează un ciclu)", + "undo_in_message_editor": "Șterge în editorul de mesaje", + "redo_in_message_editor": "Reface în editorul de mesaje", + "bold": "Îngroșat", + "italic": "Italic", + "underline": "Subliniat", + "navigation": "Navigație" + }, + "Persona": { + "limited_compatibility_with_pluralkit_like_functions": "Compatibilitate limitată cu functii similare cu PluralKit", + "enable_pk_commands": "Activează comenzi PK", + "if_enabled_it_will_enable_a_few_pk_style_commands_currently_verry_limited": "Dacă activat, va permite folosirea de comenzi in stil PK, deocamdată foarte limitate", + "disable_pk_commands": "dezactivează comenzile pk;", + "enable_pks_commands": "activează comenzile pk;", + "enable_shorthands": "Activează scurtături", + "if_enabled_you_can_use_shorthands_to_use_a_persona_for_one_message_only_eg": "Dacă activat, vei putea folosii scuraturi pentru a folosi personalități pentru un mesaj (ex. '✨:test')", + "disable_checking_typed_messages_for_shorthands": "dezactivează verificarea mesajelor scrise pentru scurataturi", + "enable_checking_typed_messages_for_shorthands": "activeaza verificarea mesajelor scrise pentru scurataturi" + } + }, + "General": { + "continue": "Continuă", + "passphrase": "Parolă", + "optional": "opțional", + "unexpected_error": "Eroare Neașteptată!", + "recovery_key": "Cheie de Recuperare", + "download": "Descarcă", + "copy": "Copiază", + "hide": "Ascunde", + "show": "Arată", + "recovery_passphrase": "Parolă de recuperare", + "reset": "Resetează", + "close": "Închide", + "accept": "Accept", + "okay": "Okay", + "retry": "Reîncearcă", + "user": "utilizator", + "delete": "Șterge", + "dismiss": "Omite", + "nickname": "Poreclă", + "save": "Salvează", + "clear": "Curăță", + "edit_nickname": "Editează Poreclă", + "set_nickname": "Setează Poreclă", + "cancel": "Anulează", + "upload": "Încarcă", + "upload_area": "Zonă încărcare", + "display_name": "Nume Afișat", + "pronouns": "Pronume", + "unknown": "Necunoscut", + "edit": "Editează" + }, + "RoomView": { + "failed_to_load_history": "Încărcarea istoriei a eșuat.", + "failed_to_load_messages": "Încărcarea mesajelor a eșuat.", + "jump_to_unread": "Sari la necitit", + "mark_as_read": "Notează ca Citit", + "new_messages": "Mesaje Noi", + "jump_to_latest": "Sari la ultimele mesaje", + "call_started_by": "Apel început de", + "start_voice_call": "Începe apel audio", + "typing": { + "are_typing": " scriu...", + "typing_sep_word": " și " + }, + "is_typing": "scrie...", + "close_threads": "Închide fire", + "search_threads": "Caută fire...", + "clear_search": "Curăță căutarea", + "Threads": { + "no_threads_match_your_search": "Nici un fir nu se potrivește cautării.", + "no_threads_yet": "Înca nu sunt fire.", + "jump": "Sari", + "threads": "Fire", + "thread": "Fir", + "no_replies_yet_start_the_thread_below": "Încă nu are răspunsuri. Începe un fir de mesaje!" + }, + "join_new_room": "Alăturăte unei camere noi", + "this_room_has_been_replaced_and_is_no_longer_active": "Aceasă camera a fost schimbată și nu mai este activă.", + "failed_to_join_replacement_room": "Încercarea de a te alătura camerei noi a eșuat!", + "open_new_room": "Deschide Cameră nouă", + "scroll_to_top": "Derulează în Sus", + "Message": { + "pin_message": "Fixează Mesajul", + "unpin_message": "Scoata fixarea Mesajului", + "forwarded_private_message": "Mesaj privat redirecționat", + "forwarded_from_earlier_in_this_room": "Redirecționat dintr-un mesaj mai vechi din această cameră", + "forwarded_from_another_room": "Redirecționat din altă cameră", + "jump_to_original": "dute la original", + "failed_to_send": "Trimitere eșuată.", + "only_you_can_see_this": "Doar tu poți vedea asta.", + "edit_message": "Editează mesajul", + "Editor": { + "edit_message": "Editează mesajul..." + } + }, + "Reactions": { + "reacted_with": "Reacționat cu" + } + }, + "RoomInput": { + "recording_duration": "Lungime înregistrare:", + "EmojiBoard": { + "no_results_found": "Nu un rezultat", + "search_results": "Rezultate căutare", + "personal_pack": "Pachet Personal", + "unknown_pack": "Pachet Necunoscut" + } + }, + "RoomCreate": { + "versions": "Versiuni", + "founders": "Fondatori", + "special_privileged_users_can_be_assigned_during_creation_these_users_have_e": "In durata creări, anumite persoane pot fi privilegiate. Aceste persoana au un control ridicat si pot fi modificate doar cu o modernizare a camerei.", + "no_suggestions": "Nici o sugestie", + "please_provide_the_user_id_and_hit_enter": "Oferiti ID-ul de utilizator si apăsați Enter.", + "only_member_of_parent_space_can_join": "Doar membrii a spațiului părinte se pot alătura.", + "private": "Privată", + "only_people_with_invite_can_join": "Doar persoanele cu o invitație se pot alătura.", + "anyone_with_the_address_can_join": "Oricine are adresa se poate alătura.", + "public": "Publică", + "address_optional": "Adresă (Opțională)", + "pick_an_unique_address_to_make_it_discoverable": "Alege o adresă unică să poată fi comunitatea descoperită.", + "this_address_is_already_taken_please_select_a_different_one": "Această adresă este deja luată. Selectați una diferită.", + "voice_room": "Cameră vocală", + "live_audio_and_video_conversations": "; conversații audio-video live.", + "chat_room": "Cameră discuții", + "messages_photos_and_videos": "; Mesaje, fotografii, and videoclipuri." + }, + "Room": { + "DirectInvite": { + "direct_message_invite_prompt": "Aceasa este o conversație directă, menită pentru discuții între două persoane, Doriți sa o tranformați intr-un group de conversație înainte de a continua?", + "failed_to_convert_direct_message_to_room": "Transformarea convesației directe in conversație de grup a eșuat!", + "convert_to_group_chat_and_invite": "Transformă in grup și invită", + "invite_to_direct_message_anyway": "Invită la mesaje directe oricum", + "invite_another_member": "Invită altă persoana" + } + }, + "DevTools": { + "json_content": "Conținut JSON", + "account_data": "Datele contului", + "developer_tools": "Unelete Dezvoltatori" + } +} diff --git a/src/app/components/DeviceVerificationSetup.tsx b/src/app/components/DeviceVerificationSetup.tsx index 599bcd703..3ce6be146 100644 --- a/src/app/components/DeviceVerificationSetup.tsx +++ b/src/app/components/DeviceVerificationSetup.tsx @@ -227,14 +227,11 @@ function SetupVerification({ onComplete }: Readonly) { return ( - {t('Settings.device_verification.generate_a')} {t('General.recovery_key')}{' '} - {t( - 'Settings.device_verification.for_verifying_identity_if_you_do_not_have_access_to_other_devices_additiona' - )} + {t('Settings.device_verification.generate_a_recovery_key')} - {t('General.passphrase')} ({t('General.optional')}) + {t('Settings.device_verification.optional_passphrase')} @@ -402,7 +399,7 @@ export const DeviceVerificationReset = forwardRef{t('General.recovery_key')} or {t('General.recovery_passphrase')}{' '} + {t('General.recovery_key')} / {t('General.recovery_passphrase')}{' '} {t('Settings.device_verification.and_every_device_you_can_verify_from')} diff --git a/src/app/components/direct-invite-prompt/DirectInvitePrompt.tsx b/src/app/components/direct-invite-prompt/DirectInvitePrompt.tsx index 9ee8a03eb..b5e91953d 100644 --- a/src/app/components/direct-invite-prompt/DirectInvitePrompt.tsx +++ b/src/app/components/direct-invite-prompt/DirectInvitePrompt.tsx @@ -61,14 +61,7 @@ export function DirectInvitePrompt({ - - {t('Room.DirectInvite.this_is_a')} {t('Room.DirectInvite.direct_message')}{' '} - {t( - 'Room.DirectInvite.room_intended_for_a_conversation_between_two_persons_would_you_like_to_conv' - )}{' '} - {t('Room.DirectInvite.group_chat')}{' '} - {t('Room.DirectInvite.before_continuing')} - + {t('Room.DirectInvite.direct_message_invite_prompt')} {convertError && ( {t('Room.DirectInvite.failed_to_convert_direct_message_to_room')} {convertError} diff --git a/src/app/features/room/RoomCallButton.test.tsx b/src/app/features/room/RoomCallButton.test.tsx index 7f4ce6ae6..6fc10e3b1 100644 --- a/src/app/features/room/RoomCallButton.test.tsx +++ b/src/app/features/room/RoomCallButton.test.tsx @@ -3,6 +3,7 @@ import { describe, expect, it, vi, beforeEach } from 'vitest'; import type * as JotaiModule from 'jotai'; import type { Room } from '$types/matrix-sdk'; import { RoomCallButton } from './RoomCallButton'; +import { t } from 'i18next'; const { startCallMock, useCallJoinedMock } = vi.hoisted(() => ({ startCallMock: vi.fn<(...args: unknown[]) => void>(), @@ -40,7 +41,7 @@ describe('RoomCallButton', () => { /> ); - fireEvent.click(screen.getByRole('button', { name: /start voice call/i })); + fireEvent.click(screen.getByRole('button', { name: t('RoomView.start_voice_call') })); await waitFor(() => { expect(startCallMock).toHaveBeenCalledWith(room, { @@ -61,7 +62,7 @@ describe('RoomCallButton', () => { /> ); - fireEvent.click(screen.getByRole('button', { name: /start video call/i })); + fireEvent.click(screen.getByRole('button', { name: t('RoomView.start_voice_call') })); await waitFor(() => { expect(startCallMock).toHaveBeenCalledWith(room, { diff --git a/src/app/features/settings/cosmetics/Cosmetics.tsx b/src/app/features/settings/cosmetics/Cosmetics.tsx index e412af9e1..0cf62439b 100644 --- a/src/app/features/settings/cosmetics/Cosmetics.tsx +++ b/src/app/features/settings/cosmetics/Cosmetics.tsx @@ -28,7 +28,7 @@ import { SequenceCardStyle } from '$features/settings/styles.css'; import { SettingsSectionPage } from '../SettingsSectionPage'; import { Appearance } from './Themes'; import { LanguageSpecificPronouns } from './LanguageSpecificPronouns'; -import { t } from 'i18next'; +import { useTranslation } from 'react-i18next'; function PronounPillMaxCountInput({ disabled }: { disabled: boolean }) { const [maxCount, setMaxCount] = useSetting(settingsAtom, 'pronounPillMaxCount'); @@ -207,16 +207,18 @@ function IconSizeSettings() { ); } -const emojiSizeItems = [ - { id: 'none', name: t('Settings.Cosmetics.none_same_size_as_text') }, - { id: 'extraSmall', name: t('Settings.Cosmetics.extra_small') }, - { id: 'small', name: t('Settings.Cosmetics.small') }, - { id: 'normal', name: t('Settings.Cosmetics.normal') }, - { id: 'large', name: t('Settings.Cosmetics.large') }, - { id: 'extraLarge', name: t('Settings.Cosmetics.extra_large') }, -]; - function SelectJumboEmojiSize() { + const { t } = useTranslation(); + + const emojiSizeItems = [ + { id: 'none', name: t('Settings.Cosmetics.none_same_size_as_text') }, + { id: 'extraSmall', name: t('Settings.Cosmetics.extra_small') }, + { id: 'small', name: t('Settings.Cosmetics.small') }, + { id: 'normal', name: t('Settings.Cosmetics.normal') }, + { id: 'large', name: t('Settings.Cosmetics.large') }, + { id: 'extraLarge', name: t('Settings.Cosmetics.extra_large') }, + ]; + const [menuCords, setMenuCords] = useState(); const [jumboEmojiSize, setJumboEmojiSize] = useSetting(settingsAtom, 'jumboEmojiSize'); @@ -284,14 +286,15 @@ function SelectJumboEmojiSize() { ); } -const profileCardRenderItems: { id: RenderUserCardsMode; name: string }[] = [ - { id: 'both', name: t('Settings.Cosmetics.light_and_dark') }, - { id: 'light', name: t('Settings.Cosmetics.light_only') }, - { id: 'dark', name: t('Settings.Cosmetics.dark_only') }, - { id: 'none', name: t('Settings.Cosmetics.off') }, -]; - function SelectRenderCustomProfileCards() { + const { t } = useTranslation(); + const profileCardRenderItems: { id: RenderUserCardsMode; name: string }[] = [ + { id: 'both', name: t('Settings.Cosmetics.light_and_dark') }, + { id: 'light', name: t('Settings.Cosmetics.light_only') }, + { id: 'dark', name: t('Settings.Cosmetics.dark_only') }, + { id: 'none', name: t('Settings.Cosmetics.off') }, + ]; + const [menuCords, setMenuCords] = useState(); const [renderUserCardsMode, setRenderUserCardsMode] = useSetting(settingsAtom, 'renderUserCards'); @@ -362,6 +365,7 @@ function SelectRenderCustomProfileCards() { } function JumboEmoji() { + const { t } = useTranslation(); return ( {t('Settings.Cosmetics.jumbo_emoji')} @@ -378,6 +382,7 @@ function JumboEmoji() { } function Privacy() { + const { t } = useTranslation(); const [privacyBlur, setPrivacyBlur] = useSetting(settingsAtom, 'privacyBlur'); const [privacyBlurAvatars, setPrivacyBlurAvatars] = useSetting( settingsAtom, @@ -424,6 +429,7 @@ function Privacy() { } function IdentityCosmetics() { + const { t } = useTranslation(); const [legacyUsernameColor, setLegacyUsernameColor] = useSetting( settingsAtom, 'legacyUsernameColor' @@ -472,9 +478,9 @@ function IdentityCosmetics() { style={{ opacity: showPronouns ? 1 : 0.5 }} > } /> @@ -485,9 +491,9 @@ function IdentityCosmetics() { style={{ opacity: showPronouns ? 1 : 0.5 }} > } /> diff --git a/src/app/features/settings/general/General.tsx b/src/app/features/settings/general/General.tsx index baa730346..259e28101 100644 --- a/src/app/features/settings/general/General.tsx +++ b/src/app/features/settings/general/General.tsx @@ -57,6 +57,9 @@ import { exportSettingsAsJson, importSettingsFromJson } from '$utils/settingsSyn import { SettingsSectionPage } from '../SettingsSectionPage'; import { t } from 'i18next'; import { CallSoundSettings } from './CallSoundSettings'; +import { useTranslation } from 'react-i18next'; +import type { SettingMenuOption } from '$components/setting-menu-selector'; +import { SettingMenuSelector } from '$components/setting-menu-selector'; type DateHintProps = { hasChanges: boolean; @@ -431,6 +434,50 @@ function DateAndTime() { ); } +function LanguageChange() { + const { i18n } = useTranslation(); + + const languageOptions: SettingMenuOption[] = [ + { value: '', label: 'System' }, + { value: 'en', label: 'English' }, + { value: 'ro', label: 'Română' }, + ]; + const [curLanguage, setCurLanguage] = useState(localStorage.getItem('i18nextLng') ?? ''); + + const handleLanguageChange = (language: string) => { + if (language) { + setCurLanguage(language); + i18n.changeLanguage(language); + } else { + localStorage.removeItem('i18nextLng'); + setCurLanguage(''); + + const detected = i18n.services.languageDetector?.detect(); + i18n.changeLanguage(Array.isArray(detected) ? detected[0] : (detected ?? 'en')); + } + window.location.reload(); + }; + + return ( + + Language + + + } + /> + + + ); +} + function Editor({ isMobile }: Readonly<{ isMobile: boolean }>) { const [enterForNewline, setEnterForNewline] = useSetting(settingsAtom, 'enterForNewline'); const [editorToolbar, setEditorToolbar] = useSetting(settingsAtom, 'editorToolbar'); @@ -1675,6 +1722,7 @@ export function General({ requestBack, requestClose }: Readonly) { + diff --git a/src/app/features/settings/settingsLink.ts b/src/app/features/settings/settingsLink.ts index e39fc9b33..3d6dfc228 100644 --- a/src/app/features/settings/settingsLink.ts +++ b/src/app/features/settings/settingsLink.ts @@ -61,6 +61,7 @@ const settingsLinkFocusIdsBySection: Record({ // Prefer the browser / navigator language and avoid using cached localStorage value detection: { - // prefer querystring first (e.g. ?lng=de), then navigator, then html tag, path, subdomain - order: ['querystring', 'navigator', 'htmlTag', 'path', 'subdomain'], + // prefer querystring first (e.g. ?lng=de), then storage,System then navigator, then html tag, path, subdomain + order: ['querystring', 'localStorage', 'navigator', 'htmlTag', 'path', 'subdomain'], lookupQuerystring: 'lng', // do not cache the detected language in localStorage to avoid stale overrides - caches: [], + caches: ['localStorage'], }, debug: false, fallbackLng: 'en',