question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Warn about invalid translations

See original GitHub issue

broken:

n-comments: '{numComments, plural, =1 {1 comment} andere {# comments}}'

fixed:

n-comments: '{numComments, plural, =1 {1 comment} other {# comments}}'

it would have been cool if ember-intl could’ve warned me about the broken plural rule. instead sentry.io was reporting “infinite rendering invalidations” and apparently the user interface for the users using that translation was repeated several times (see https://github.com/skylines-project/skylines/issues/615).

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Turbo87commented, Feb 23, 2017

I’ll have to think about it. Might be a good idea, yeah. What I’m a little worried about is having a mismatch between the CLDR versions and not being able to resolve cldr-core properly.

0reactions
jasonmitcommented, Feb 23, 2017

Woohoo 😃

Do you think it’s worth pulling this work into a stand-alone addon, when you’re ready, into something like ember-intl-icu-linter? This can be a future task, just bike shedding on how we can scale this to add additional linting (i.e., key collision detection).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Warn about invalid translation keys with TS #1195
Provide stricter TS typing based on the provided schema types, so that invalid keys would be prevented/warned in type checks (editor, build, etc)....
Read more >
Why warn about invalid utf-8 in commments? : r/cpp
It's a potential readability issue. Invalid UTF-8 most often mean malformed characters in comments meaning you just seeing garbage instead of ...
Read more >
Translations and invalid arguments of type resource | Vazcell
We access the route on our server /web/sites/default/files/translations and we confirm that both the owner/group and the access to the folder is allowed...
Read more >
1006063 – RFE: Enforcing validation for translation update
The stat on the document should be updated. Message 1 and 3 are saved as translated. Message 3 are shown as invalid. The...
Read more >
Translation template is invalid (wp-content) | WordPress.org
Occured after unstalled 2.4.5 version. Strings such as tags autor (metadata ones) are not translated now… The page I need help with: [log...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found