3.2.0 • Published 5 years ago

@yr/data-store-locales v3.2.0

Weekly downloads
9
License
MIT
Repository
github
Last release
5 years ago

NPM Version Build Status

An @yr/data-store factory for managing locales.

init(localeCodes: Array)

Configure with valid locale codes.

add(localeCode: String, [data: Object], [options: Object]): DataStore

Add new locale for localeCode.

load(...args)

Load locale files.

For server environments, the signature is load(localespath: String), where localespath is a path to a directory of *.json files.

For browser environments, the signature is load(data: Object), where data is locale data for one locale.

freeze(data: Object)

Lock all locales after optionally setting data.

get(localeCode: String): DataStore

Retrieve locale DataStore for localeCode.

all(): Object

Retrieve all locale DataStores keyed by localeCode.

destroy()

Destroy all instances.

3.2.0

5 years ago

3.1.5

6 years ago

3.0.6-alpha-2

7 years ago

3.0.6-alpha-1

7 years ago

3.0.5

7 years ago

3.0.4

8 years ago

3.0.3

8 years ago

3.0.2

8 years ago

3.0.1

8 years ago

3.0.0

8 years ago

2.2.5

8 years ago

2.2.4

8 years ago

2.2.3

8 years ago

2.2.2

8 years ago

2.2.1

8 years ago

2.2.0

8 years ago

2.1.3

8 years ago

2.1.2

8 years ago

2.1.1

8 years ago

2.1.0

8 years ago

2.0.0

8 years ago

1.2.2

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.0

9 years ago