Skip to content

psirenny/derby-locale-browser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Derby Locale Browser

A derby-locale strategy that selects locales from the browser's Accept-Language request header.

Build Status

Installation

$ npm install derby-locale-browser --save

Usage

In your server file, add the middleware before derby-locale:

var localeBrowser = require('derby-locale-browser');

expressApp
  // ...
  // ...
  .use(localeBrowser())
  .use(locale())

Options

name – The name of the strategy. Defaults to browser.

order – The order of the strategy. Blank by default.

path – The path to the locale object. Defaults to $locale.

About

Add browser support to derby-locale.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published