Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] Translations falling back to wrong .resx file #14376

Open
Phil108 opened this issue Jun 29, 2021 · 0 comments
Open

[Bug] Translations falling back to wrong .resx file #14376

Phil108 opened this issue Jun 29, 2021 · 0 comments
Labels
s/unverified New report that has yet to be verified t/bug 🐛
Projects

Comments

@Phil108
Copy link

Phil108 commented Jun 29, 2021

Description

Translations ignoring fallback rules for resx-files and select the en-US version by error.

Steps to Reproduce

  1. Add these translation files to your project Translations.resx, Translations.en.resx (optional), Translations.en-US.resx, Translations.en-GB.resx
  • For iOS set your Phone's region to "Lithuania", your language to "English (UK)" and delete all languages from the list of preferred languages
  • For Android select "English" as device language and region to "Netherlands"
  1. Retrieve a translation

Expected Behavior

  • According to the documentation for using resx-files for translations with Xamarin.Forms:
    ** For iOS Translations.en-GB.resx shall be selected.
    ** For Android, if Translations.en.resx is present, a translation should be selected from this file, otherwise from Translations.resx

Actual Behavior

  • Translations from Translations.en-US.resx are used

Basic Information

  • Version with issue: 4.8.0.1687
  • Platform Target Frameworks:
    ** iOS: 14.2
    ** Android: 11

Screenshots

Project files

iOS settigns

iOS result

Android settings

Android results

Example Code

RESXTEST.zip

Workaround

  • Implement fallback mechanism oneself and transition whole codebase
@Phil108 Phil108 added s/unverified New report that has yet to be verified t/bug 🐛 labels Jun 29, 2021
@jsuarezruiz jsuarezruiz added this to New in Triage via automation Sep 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
s/unverified New report that has yet to be verified t/bug 🐛
Projects
Triage
  
New
Development

No branches or pull requests

1 participant