globalizejs / globalize

A JavaScript library for internationalization and localization that leverages the official Unicode CLDR JSON data
https://globalizejs.com
MIT License
4.8k stars 603 forks source link

creating dictionary #716

Closed sortalgorithms closed 7 years ago

sortalgorithms commented 7 years ago

i am using globalize 1.1.1 . creating dictionary by this code : localization.loadMessages({de: { "name": "Vorname"}}) and use it by this code :Globalize.formatMessage("name") and got this error Globalize.formatMessage is not a function. am i using wrong version or its what? it is so confusing that in every version your names is going to change and when we are using them we got so many names that are not clear .

rxaviers commented 7 years ago

Did you load the message module? Please see our examples as a baseline https://github.com/globalizejs/globalize/tree/master/examples.

If you still think there's an issue, please provide a way to reproduce it and I will reopen. Thanks