flexboxfroggy
flexboxfroggy copied to clipboard
Automatically detect PT-BR (Issue #181)
This is a workaround to automatically detect languages added with country sufix in lang code
I've tried to link this to the issue but I failed, sorry! If accepted I will manually close the issue! Thank you
Hey @Quenix, thanks for the PR! Looks like it's on the right path.
How about instead of keeping a hard-coded list of languages, we check if the hyphenated language code exists in messages.languageActive first, if not we continue with the split language code? We wouldn't have to maintain a list that way.
Hey @Quenix, thanks for the PR! Looks like it's on the right path.
How about instead of keeping a hard-coded list of languages, we check if the hyphenated language code exists in
messages.languageActivefirst, if not we continue with the split language code? We wouldn't have to maintain a list that way.
Sounds way better! Thanks, I will try improving it!
Hey @Quenix, have you had any progress with this? Let me know if you have any questions about the code or would like me to take over.