@emmert/resources
TypeScript icon, indicating that this package has built-in type declarations

0.22.0 • Public • Published

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)

Readme

Keywords

none

Package Sidebar

Install

npm i @emmert/resources

Weekly Downloads

1

Version

0.22.0

License

MIT

Unpacked Size

174 kB

Total Files

33

Last publish

Collaborators

  • paco3346
  • robbyemmert