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.

Hiding untranslated keys

See original GitHub issue

I’m submitting a … (check one with “x”)

[ ] bug report => check the FAQ and search github for a similar issue or PR before submitting
[ ] support request => check the FAQ and search github for a similar issue before submitting
[x] feature request

Current behavior My keys are visible for a brief period before translations are loaded. This has an ugly effect on the loading of my website.

Expected/desired behavior An attribute could be used to show translated elements. My css could for example look like this:

[translate]:not([translated]) { display: none; }

Then when the translated attribute is added the translated text will become visible.

What is the motivation / use case for changing the behavior? To make it simple to hide keys until translation is complete.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:16
  • Comments:5

github_iconTop GitHub Comments

3reactions
gitnikcommented, Jan 25, 2018

is there any update on this? Is this expected behaviour that will not be changed or is it something that is under consideration?

1reaction
parker-mikecommented, Jun 16, 2017

May be there is an option to hold the loading stage on the screen until translations are loaded? I mean that when the application starts and not functioning yet, the browser shows the contents of the app root tags, so maybe we can use some hooks to load the translations at this stage, so when the app starts rendering the page and replaces the innerHtml it would have the translations and won’t show the keys… Is there any way of doing it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Option to hide items to untranslated Entities [#2895269] - Drupal
Entity based process trims unpublished translation links (from anom). Leaves items for those with edit/view access). Removes lid based links if ...
Read more >
How to catch not translated keys when using @ ngx-translate
OK, here it is. Use MissingTranslationHandler as stated in comments. @Injectable() export class MyMissingTranslationHandler implements ...
Read more >
qTranslate: Hide untranslated content
I create a very simple plugin which enables hiding menu items in some languages, but show them on others.
Read more >
Key editor and key actions | Lokalise Docs
Learn how to manage your translation keys in the editor, link keys to platforms and ... Hide from contributors: hide the target key...
Read more >
Common Questions | Crowdin Documentation
You can also make strings invisible from the Editor, Translation mode. In the top middle area open the menu and click Hide string....
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