Fixed translation bug when the locale contained the region (#765)

* Fixed the issue, added tests and italian translation

* changelog

* improved translation handling code and added more tests

* Update UnitTests/Sources/LocalizationTests.swift

Co-authored-by: Stefan Ceriu <stefanc@matrix.org>

---------

Co-authored-by: Stefan Ceriu <stefanc@matrix.org>
This commit is contained in:
Mauro
2023-04-05 10:36:02 +02:00
committed by GitHub
parent df92eed1a0
commit d24ee73d15
13 changed files with 499 additions and 345 deletions
@@ -49,6 +49,7 @@
"common_audio" = "Audio";
"common_bubbles" = "Bubbles";
"common_creating_room" = "Creating room…";
"common_current_user_left_room" = "Left room";
"common_decryption_error" = "Decryption error";
"common_developer_options" = "Developer options";
"common_edited_suffix" = "(edited)";
@@ -276,3 +277,5 @@
"state_event_room_unban" = "%1$@ unbanned %2$@";
"state_event_room_unban_by_you" = "You unbanned %1$@";
"state_event_room_unknown_membership_change" = "%1$@ made an unknown change to their membership";
"test_language_identifier" = "de";
"test_untranslated_default_language_identifier" = "en";