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.

Trigger fallback when value is emptry

See original GitHub issue

I use BabelEdit for managing my locale json files. A new item gets added to all json files. Good! But that makes it very likely the editor forgets to add a translation.

In that case $t('some.nested.value') will return an empty string.

Is it possible to force nuxtI18n to use a fallback instead?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

2reactions
rchlcommented, Nov 2, 2020

It seems like BabelEdit has an option to not save empty translations.

Screenshot 2020-11-02 at 23 05 23

1reaction
katerlouiscommented, Nov 12, 2020

😢

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I trigger a callback when an object attribute is ...
If I'm not mistaken calling myClass.sum will return the total of values in the array held under the a attribute. Share.
Read more >
Advanced Callbacks | Dash for Python Documentation | Plotly
It is empty when the callback is called on initial load, unless an Input prop got its value from another initial callback.
Read more >
Callback initialization with None vs default properties #468
Passing undefined properties as None into the callbacks is actually a little problematic: Empty Value. In many components, None isn't ...
Read more >
Create Callbacks for Graphics Objects - MATLAB & Simulink
This structure is empty for many graphics object callbacks. Whenever a callback executes in response to a user action, MATLAB ® calls the...
Read more >
Twilio Function Execution
To signal success and return a value, pass a falsy value such as null or undefined as the first parameter to callback ,...
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