Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(index): make silentTranslationWarn work for dates and numbers too #481

Merged
merged 1 commit into from
Dec 15, 2018

Conversation

Raiondesu
Copy link
Contributor

@Raiondesu Raiondesu commented Dec 14, 2018

Currently, the silentTranslationWarn flag only disables warnings for regular translations, which, I think, is not what people would expect from this option. Even when silentTranslationWarn is enabled - warnings for fallback translations for numbers and dates still occur, completely littering the console in some cases.

This fix makes all fallback warnings to vanish (including numbers and dates) upon setting the silentTranslationWarn flag, while leaving other (non-fallback) warnings intact.

Currently, the `silentTranslationWarn` flag only disables warnings for regular translations, which, I think, is not what people would expect from this option. Even when `silentTranslationWarn` is enabled - warning for fallback translations for numbers and dates still occur, completely littering the console.

This fix makes all fallback warnings to vanish (including numbers and dates) upon setting the `silentTranslationWarn` flag, while leaving other (non-fallback) warnings intact.
@codecov-io
Copy link

codecov-io commented Dec 14, 2018

Codecov Report

Merging #481 into dev will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##              dev     #481   +/-   ##
=======================================
  Coverage   96.64%   96.64%           
=======================================
  Files           9        9           
  Lines         655      655           
=======================================
  Hits          633      633           
  Misses         22       22
Impacted Files Coverage Δ
src/index.js 99.62% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b4a8c27...382aa7a. Read the comment docs.

1 similar comment
@codecov-io
Copy link

Codecov Report

Merging #481 into dev will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##              dev     #481   +/-   ##
=======================================
  Coverage   96.64%   96.64%           
=======================================
  Files           9        9           
  Lines         655      655           
=======================================
  Hits          633      633           
  Misses         22       22
Impacted Files Coverage Δ
src/index.js 99.62% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b4a8c27...382aa7a. Read the comment docs.

Copy link
Owner

@kazupon kazupon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@kazupon kazupon merged commit 402092b into kazupon:dev Dec 15, 2018
@Raiondesu Raiondesu deleted the patch-1 branch December 16, 2018 12:53
Raiondesu added a commit to Raiondesu/vue-i18n that referenced this pull request Dec 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants