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 typings in components #344

Merged
merged 2 commits into from
May 12, 2018
Merged

Fix typings in components #344

merged 2 commits into from
May 12, 2018

Conversation

Demivan
Copy link
Contributor

@Demivan Demivan commented May 11, 2018

Typescript typings are incorrect for component options. Typescript expects entire VueI18n object and not just messages.
This does not allow to use "Component based localization" http://kazupon.github.io/vue-i18n/en/component.html

This fix allows to only set messages, dateTimeFormats and numberFormats as i18n options in vue component.
I added failing test case but I cannot find where typings are checked.

@codecov-io
Copy link

codecov-io commented May 11, 2018

Codecov Report

Merging #344 into dev will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##              dev     #344   +/-   ##
=======================================
  Coverage   96.19%   96.19%           
=======================================
  Files           9        9           
  Lines         631      631           
=======================================
  Hits          607      607           
  Misses         24       24

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 c58ecb2...7aeead3. 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.

Thanks!

@kazupon kazupon merged commit 2402893 into kazupon:dev May 12, 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