lephyrus / ngx-translate-messageformat-compiler

Advanced pluralization (and more) for ngx-translate, using standard ICU syntax which is compiled with the help of messageformat.js.
MIT License
93 stars 29 forks source link

Can't make fake language work #69

Open danielerepici opened 3 years ago

danielerepici commented 3 years ago

I'm using fake languages for testing purposes, e.g. a 'tilde' language whose translation values are exactly the same as English except for prepending a tilde '~'. I've made up a custom tilde language, but I get this error:

Error: Localisation function not found for locale "tilde"
  at getPlural (plurals.js:47)
  at MessageFormat.compile (messageformat.js:354)
  at TranslateMessageFormatCompiler.compileTranslations (ngx-translate-messageformat-compiler.js:40)
EinfachHans commented 2 years ago

I get this error for real languages somehow... Have you solved this?

danielerepici commented 2 years ago

Unfortunately we didn't. We switched to a different solution.