i18n-stack 0.1.2 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Readme.md CHANGED
@@ -1,5 +1,5 @@
1
1
  [![NPM version][npm-image]][npm-url]
2
- [![Dependency Status][gemnasium-image]][gemnasium-url]
2
+ [![Dependency Status][deps-image]][deps-url]
3
3
 
4
4
  # i18n-stack
5
5
 
@@ -36,7 +36,7 @@ var i18n = require('i18n-stack');
36
36
 
37
37
  app.use(i18n.overwriteLanguage(locale));
38
38
  app.use(i18n.detectLanguage(locale));
39
- app.use(i18n.gettext)(locale));
39
+ app.use(i18n.gettext(locale));
40
40
 
41
41
 
42
42
  ```
@@ -50,8 +50,9 @@ MIT © [Damian Krzeminski](https://pirxpilot.me)
50
50
  [connect-gettext]: https://npmjs.org/package/connect-gettext
51
51
  [parse-accept-language]: https://npmjs.org/package/parse-accept-language
52
52
 
53
- [npm-image]: https://img.shields.io/npm/v/i18n-stack.svg
53
+ [npm-image]: https://img.shields.io/npm/v/i18n-stack
54
54
  [npm-url]: https://npmjs.org/package/i18n-stack
55
55
 
56
- [gemnasium-image]: https://img.shields.io/gemnasium/pirxpilot/i18n-stack.svg
57
- [gemnasium-url]: https://gemnasium.com/pirxpilot/i18n-stack
56
+ [deps-image]: https://img.shields.io/librariesio/release/npm/i18n-stack
57
+ [deps-url]: https://libraries.io/npm/i18n-stack
58
+
package/package.json CHANGED
@@ -1,13 +1,16 @@
1
1
  {
2
2
  "name": "i18n-stack",
3
- "version": "0.1.2",
3
+ "version": "1.0.1",
4
4
  "description": "Stack of connect middleware for language/locale detection and translation.",
5
5
  "author": {
6
6
  "name": "Damian Krzeminski",
7
7
  "email": "pirxpilot@furkot.com",
8
8
  "url": "https://pirxpilot.me"
9
9
  },
10
- "repository": "pirxpilot/i18n-stack",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/pirxpilot/i18n-stack.git"
13
+ },
11
14
  "license": "MIT",
12
15
  "keywords": [
13
16
  "i18n",
@@ -18,15 +21,18 @@
18
21
  "po"
19
22
  ],
20
23
  "dependencies": {
21
- "connect-gettext": "^1.0.0",
22
- "detect-language": "^1.0.1",
23
- "overwrite-language": "~0",
24
- "parse-accept-language": "^1.0.0"
24
+ "connect-gettext": "~2",
25
+ "detect-language": "~2",
26
+ "overwrite-language": "~1",
27
+ "parse-accept-language": "~2"
25
28
  },
26
29
  "devDependencies": {
27
- "jshint": "^2.7.0"
30
+ "@biomejs/biome": "^1.9.4"
28
31
  },
29
32
  "scripts": {
30
33
  "test": "make check"
31
- }
32
- }
34
+ },
35
+ "files": [
36
+ "index.js"
37
+ ]
38
+ }
package/.editorconfig DELETED
@@ -1,12 +0,0 @@
1
- root = true
2
-
3
- [*]
4
- indent_style = space
5
- indent_size = 2
6
- end_of_line = lf
7
- charset = utf-8
8
- trim_trailing_whitespace = true
9
- insert_final_newline = true
10
-
11
- [*.md]
12
- trim_trailing_whitespace = false
package/.npmignore DELETED
@@ -1,6 +0,0 @@
1
- test
2
- Makefile
3
- History.md
4
- License
5
- .travis.yml
6
- .jshintrc
package/.project DELETED
@@ -1,11 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <projectDescription>
3
- <name>pirxpilot-i18n-stack</name>
4
- <comment></comment>
5
- <projects>
6
- </projects>
7
- <buildSpec>
8
- </buildSpec>
9
- <natures>
10
- </natures>
11
- </projectDescription>
package/History.md DELETED
@@ -1,15 +0,0 @@
1
-
2
- 0.1.2 / 2017-02-22
3
- ==================
4
-
5
- * transfer repo to pirxpilot/i18n-stack
6
-
7
- 0.1.1 / 2016-07-13
8
- ==================
9
-
10
- * relax overwrite-language dep restrictions
11
-
12
- 0.1.0 / 2015-05-09
13
- ==================
14
-
15
- * initial implementation