@dragonaxe/i18n v1.12.6
Summary
A set of services to get static content(unilangual or multilangual(i18n)) or content from a CDN such as Prismic.
Usage
See the exports in package entry point. Construct your own content data access.
Access the resources using keys.
For static resources, your must provide your map as a record. If the static resources are multilangual, you must divide each resource with a locale of your choice such as "en" or "fr".
If you only intend to access resources in one language, use the "unilangual" versions of the services.
Tests
Set these environment variables in .env.tests:
TEST_PRISMIC_REPO_NAME=
TEST_PRISMIC_REPO_TOKEN=
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
5 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago