Skip to content

Fix Interslavic BCP47 code#242

Open
noomorph wants to merge 1 commit intolipu-linku:mainfrom
noomorph:fix/interslavic-bcp47
Open

Fix Interslavic BCP47 code#242
noomorph wants to merge 1 commit intolipu-linku:mainfrom
noomorph:fix/interslavic-bcp47

Conversation

@noomorph
Copy link
Copy Markdown

@noomorph noomorph commented Nov 17, 2025

Hi, these locales look like workarounds, can we align them to the actual BCP 47 standard, please?

Invalid locales cause issues like this:

Intl.ListFormat.supportedLocalesOf(['isv_l', 'en']);
VM221:1 Uncaught RangeError: Invalid language tag: isv_l
    at ListFormat.supportedLocalesOf (<anonymous>)
    at <anonymous>:1:17

Even linku.la crashes if I choose those invalid locales, e.g., on this page: https://linku.la/words/kalama?q=

@noomorph
Copy link
Copy Markdown
Author

noomorph commented Nov 17, 2025

If this is a problem on your CrowdIn, please fix those codes there and feel free to close my PR. 🙏

@noomorph
Copy link
Copy Markdown
Author

@gregdan3 sorry for the ping, may I know some contacts if this is out of your domain? You can find me on Toki Pona's Discord if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant