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.

Default Text when key is not available

See original GitHub issue

Hello, <span translate="SCREEN1_TITLE">Default Text</span>

When ‘SCREEN1_TITLE’ is not available, it showing me SCREEN1_TITLE on screen. I like to see ‘Default Text’ on screen. How can i achieve this ?

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

7reactions
knallicommented, Oct 3, 2014

Yes, you can use translate-default, i.e.

<span translate="TRANSLATION_KEY" translate-default="Default text"></span>

Looks like it is missing in the docs, I will open a todo.

1reaction
knallicommented, Jun 7, 2017

See here #1427 (Contribution welcome) 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Returning the default value for the key that cannot be found in ...
I want console.log (res) to return "key not found", not undefined . Is this possible? javascript.
Read more >
LOOKUP to return default value if not found match value in Excel
Press Enter key to return the match, if there is no match, it will display Not Found.
Read more >
Change the default input language for Windows
In the Text Services and Input Languages dialog box, under Default input language, click the language that you want to use as the...
Read more >
BitLocker is Prompting for a Recovery Key, and You Cannot ...
If a problem with BitLocker occurs, you encounter a prompt for a BitLocker recovery key. If you do not have a working recovery...
Read more >
<img>: The Image Embed element - HTML - MDN Web Docs
The alt attribute holds a text description of the image, ... There are a number of situations in which a browser might not...
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