Skip to content
This repository has been archived by the owner on Jul 10, 2019. It is now read-only.

Question - Intl Dependency #45

Closed
lwelti opened this issue Jul 20, 2016 · 5 comments
Closed

Question - Intl Dependency #45

lwelti opened this issue Jul 20, 2016 · 5 comments
Labels

Comments

@lwelti
Copy link

lwelti commented Jul 20, 2016

hi, you mention that you have an Intl dependency, but where is that and why ? if you already have the metadata in your library.

thanks in advance.

@caridy
Copy link
Collaborator

caridy commented Jul 20, 2016

Lucas, the dependecy is just to make sure that the global Intl object exists, whether that's native or a polyfill, doesn't really matter, and this pkg will not really import that dependency, it will just do a simple check to make sure that the runtime works fine with Intl.

@lwelti
Copy link
Author

lwelti commented Jul 20, 2016

because i could use it without having that dependency, or not?

@caridy
Copy link
Collaborator

caridy commented Jul 20, 2016

that is correct, if your runtime already have Intl, you can use intl-relativeformat directly.

@gajus
Copy link

gajus commented Sep 7, 2016

because i could use it without having that dependency, or not?

that is correct, if your runtime already have Intl, you can use intl-relativeformat directly.

You don't need Intl global for node.js (as of v4).

In browser environment, you need to polyfill Intl if you want to support Safari 9 (which is the current version). Safari 10 does support Intl.

http://caniuse.com/#search=Intl

This issue can be closed.

@longlho
Copy link
Member

longlho commented Jun 8, 2019

Intl is available in all browsers IE11+ now

@longlho longlho closed this as completed Jun 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants