7.3.6 • Published 10 months ago

@gasket/intl v7.3.6

Weekly downloads
35
License
MIT
Repository
github
Last release
10 months ago

@gasket/intl

Provides internationalization managers for translation files and locale handling.

Installation

npm i @gasket/intl @gasket/plugin-intl

See @gasket/plugin-intl for more information on how to configure the plugin.

Usage

With a intl.js built by @gasket/plugin-intl, you can use the manager to get messages for locales.

To get all messages for a locale:

import intlManager from '../path/to/intl.js';

const messages = intlManager.getLocale('en-US').getAllMessages();

LocaleHandler

This will return a handler with the following methods:

// Access a locale handler
const localeHandler = intlManager.getLocale('en-US');

// locale files can be dynamically loaded
await localeHandler.load('locales/examples')

// Get all loaded messages for a locale
localeHandler.getAllMessages();

TODO: more examples coming

License

MIT

7.3.1

12 months ago

7.3.0

1 year ago

7.1.0

1 year ago

7.2.3

1 year ago

7.1.0-next.1

1 year ago

7.1.0-next.0

1 year ago

7.1.0-next.7

1 year ago

7.1.0-canary.3

1 year ago

7.1.0-next.6

1 year ago

7.1.0-canary.1

1 year ago

7.1.0-canary.2

1 year ago

7.1.0-next.3

1 year ago

7.1.0-next.2

1 year ago

7.2.0

1 year ago

7.1.0-next.5

1 year ago

7.1.0-next.4

1 year ago

7.3.5

10 months ago

7.3.4

10 months ago

7.3.3

12 months ago

7.3.2

12 months ago

7.3.6

10 months ago

7.0.15

1 year ago

7.0.0-next.69

1 year ago

7.0.0

1 year ago

7.0.1

1 year ago

7.0.0-next.70

1 year ago

7.0.0-next.67

1 year ago

7.0.0-next.68

1 year ago

7.0.0-next.66

1 year ago

7.0.0-next.65

1 year ago

7.0.0-next.64

1 year ago

7.0.0-next.63

2 years ago

7.0.0-next.62

2 years ago

7.0.0-next.61

2 years ago

7.0.0-next.45

2 years ago

7.0.0-next.46

2 years ago

7.0.0-next.47

2 years ago

7.0.0-next.48

2 years ago

7.0.0-next.49

2 years ago

7.0.0-next.60

2 years ago

7.0.0-next.54

2 years ago

7.0.0-next.55

2 years ago

7.0.0-next.56

2 years ago

7.0.0-next.57

2 years ago

7.0.0-next.58

2 years ago

7.0.0-next.59

2 years ago

7.0.0-next.50

2 years ago

7.0.0-next.51

2 years ago

7.0.0-next.52

2 years ago

7.0.0-next.53

2 years ago

6.0.0-canary.4

5 years ago

6.0.0-canary.3

5 years ago

6.0.0-canary.2

5 years ago

5.7.0

5 years ago

6.0.0-canary.0

5 years ago

5.6.0

6 years ago

5.5.0

6 years ago

5.0.2

6 years ago

5.0.0

6 years ago

5.0.0-canary.4

6 years ago

5.0.0-canary.3

6 years ago

5.0.0-canary.2

6 years ago

5.0.0-canary.1

6 years ago

5.0.0-canary.0

6 years ago