Skip to content
This repository was archived by the owner on Jul 12, 2022. It is now read-only.

Commit 96252fe

Browse files
author
Bruno Paulino
authored
Merge pull request #28 from n26/deprecation-release
Deprecation release
2 parents c6a4494 + 1d00bea commit 96252fe

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
> **Note**
2+
> This project has been deprecated and will not be receiving any updates anymore.
3+
> Please, consider using an alternative package.
4+
15
# express-simple-locale
26

37
A simple Express middleware to guess the **short-locale** of a user. It then saves the found locale on the request for further usage.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "express-simple-locale",
33
"description": "A simple Express middleware to guess the short-locale of a user.",
4-
"version": "0.3.4",
4+
"version": "1.0.0",
55
"author": {
66
"name": "Hugo Giraudel",
77
"email": "[email protected]",

src/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ var get = require('lodash.get')
22
var getLocale = require('./helpers/getLocale')
33

44
function middleware (options) {
5+
console.warn(
6+
'express-simple-locale has been deprecated and will not be receiving any updates anymore.'
7+
+ '\nPlease, consider using an alternative package.'
8+
)
9+
510
var key = get(options, 'key', 'locale')
611

712
return function (request, response, next) {

0 commit comments

Comments
 (0)