Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resources outside of 'en' folder not working #493

Closed
peternary opened this issue Jan 14, 2019 · 0 comments

Comments

@peternary
Copy link

commented Jan 14, 2019

I'm submitting a...

Bug report (I searched for similar issues and did not find one)

Current behavior

If resources are stored in a folder other than Shared\Strings\en\ then ResourceLoader.GetString(stringName) returns an empty string. You also get an empty string if you set the current culture to something like 'de-DE', even if you have a 'de-DE' folder.

Expected behavior

Should be able to use string folders other than en\

Minimal reproduction of the problem with instructions

Rename the Strings\en folder to Strings\en-US or add strings to another culture and switch current culture to that culture. Calling ResourceLoader.GetString against that file\string will return an empty string.

Environment

Nuget Package: 

Package Version(s): 

Affected platform(s):
- [ ] iOS
- [X] Android
- [ ] WebAssembly
- [ ] Windows
- [ ] Build tasks

Visual Studio
- [X] 2017 (version: )
- [ ] 2017 Preview (version: )
- [ ] for Mac (version: )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.