@emmert/resources
v0.22.0
Published
A framework for importing translatable resources into your app
Downloads
8
Readme
Resources
Localized resources for an application
- Strings
- Templates
Quick Start
Step 1: Create context from @emmert/context
import { Context } from '@emmert/context'
const appContext = new Context()
appContext.use(
resourcesMiddleware({
// ...Settings (see below)
}),
)
Options
defaultLanguage: the default language to use when no language header is provided
resources: a map of resources (or factory to generate a map of resources)