i18n-js 3.6.0 → 3.9.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 29ffee5ef86025eb985994d60c97d8cd88d915993faa3c5016ee441151dd5d2c
4
- data.tar.gz: 208ed897a249121db4fabb69344f362afbe716888f5f8e7a7fae0857fc5f3764
3
+ metadata.gz: '08599ed12ef6edb132d1a71b74e5ca2f3b3c04dc4463286414540f4631676984'
4
+ data.tar.gz: 3dd94b7a9974952a5cb7996c222d1aaeb3e5c756cc811a8890e4d5fa79ffccb3
5
5
  SHA512:
6
- metadata.gz: 3f3c3cf2649ae0d92fb9eb641c500a198f4228842f96e39948a9aaddcef01f8a5c2cd1967f83b6f2a7d70766d59f95c82da91a20bcecccc2ccd8c0a5ff1f19db
7
- data.tar.gz: fa583dcd0070426fec841dc5a699837703ec3fa511fa1155e5d154909e733aba915cc6caf7543166652eab26ac64dfe7a9329d42e46238f784bc9ed18f144660
6
+ metadata.gz: 26138b1fafc184b7858a97969130f29f9562cdaab41d1f05c1e31a37064a2f40a31b4d0a349e12ddaa6f769ab229618a854efaee0102f99821edd489b9d1deb5
7
+ data.tar.gz: d763f7ebe8d1bba649c521bba03fa7fb77e4283b90ce6f1a1bb78ebf22dc7146f4e2eb02484f7d9f104d4d5454d90d0622af14128c6b383cd399e52aabaaf08b
@@ -0,0 +1,3 @@
1
+ ---
2
+ github: ["fnando"]
3
+ custom: ["https://paypal.me/nandovieira/🍕"]
@@ -0,0 +1,100 @@
1
+ name: Tests
2
+
3
+ on:
4
+ pull_request:
5
+ branches:
6
+ - main
7
+ paths-ignore:
8
+ - 'README.md'
9
+ push:
10
+ branches:
11
+ - main
12
+ paths-ignore:
13
+ - 'README.md'
14
+
15
+ jobs:
16
+ ruby_unit_tests:
17
+ name: Ruby Unit Tests
18
+ if: "contains(github.event.commits[0].message, '[ci skip]') == false"
19
+ strategy:
20
+ fail-fast: false
21
+ matrix:
22
+ os:
23
+ - ubuntu
24
+ ruby:
25
+ - 2.4
26
+ - 2.5
27
+ - 2.6
28
+ - 2.7
29
+ gemfile:
30
+ - gemfiles/i18n_0_6.gemfile
31
+ - gemfiles/i18n_0_7.gemfile
32
+ - gemfiles/i18n_0_8.gemfile
33
+ - gemfiles/i18n_0_9.gemfile
34
+ - gemfiles/i18n_1_0.gemfile
35
+ - gemfiles/i18n_1_1.gemfile
36
+ - gemfiles/i18n_1_2.gemfile
37
+ - gemfiles/i18n_1_3.gemfile
38
+ - gemfiles/i18n_1_4.gemfile
39
+ - gemfiles/i18n_1_5.gemfile
40
+ - gemfiles/i18n_1_6.gemfile
41
+ - gemfiles/i18n_1_7.gemfile
42
+ - gemfiles/i18n_1_8.gemfile
43
+ allow_failures:
44
+ - false
45
+ include:
46
+ - os: ubuntu
47
+ ruby: ruby-head
48
+ gemfile: gemfiles/i18n_1_8.gemfile
49
+ allow_failures: true
50
+ env:
51
+ BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
52
+ ALLOW_FAILURES: "${{ matrix.allow_failures }}"
53
+ runs-on: ${{ matrix.os }}-latest
54
+ continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
55
+ steps:
56
+ - name: Checkout
57
+ uses: actions/checkout@v2
58
+ - name: Setup Ruby
59
+ uses: ruby/setup-ruby@v1
60
+ with:
61
+ ruby-version: ${{ matrix.ruby }}
62
+ bundler-cache: true
63
+ - name: Test
64
+ run: bundle exec rake spec:ruby || $ALLOW_FAILURES
65
+
66
+ js_unit_tests:
67
+ name: JS Unit Tests
68
+ if: "contains(github.event.commits[0].message, '[ci skip]') == false"
69
+ strategy:
70
+ fail-fast: false
71
+ matrix:
72
+ os:
73
+ - ubuntu
74
+ node:
75
+ - 10
76
+ - 12
77
+ - 14
78
+ runs-on: ${{ matrix.os }}-latest
79
+ steps:
80
+ - name: Checkout
81
+ uses: actions/checkout@v2
82
+ - name: Setup node
83
+ uses: actions/setup-node@v1
84
+ with:
85
+ node-version: ${{ matrix.node }}
86
+ - name: Get yarn cache directory path
87
+ id: yarn-cache-dir-path
88
+ run: echo "::set-output name=dir::$(yarn cache dir)"
89
+ - uses: actions/cache@v2
90
+ id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
91
+ with:
92
+ path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
93
+ key: ${{ runner.os }}-yarn-${{ github.ref }}-${{ github.sha }}
94
+ restore-keys: |
95
+ ${{ runner.os }}-yarn-${{ github.ref }}-
96
+ ${{ runner.os }}-yarn-
97
+ - name: Install JS Dependencies
98
+ run: yarn install
99
+ - name: Test
100
+ run: npm test
data/CHANGELOG.md CHANGED
@@ -18,6 +18,74 @@ This project adheres to [Semantic Versioning](http://semver.org/).
18
18
  - Nothing
19
19
 
20
20
 
21
+ ## [3.9.0]
22
+
23
+ ### Added
24
+
25
+ - [Ruby] Allow to set custom locales instead of using only `I18n.available_locales`.
26
+ (PR: https://github.com/fnando/i18n-js/pull/617)
27
+
28
+
29
+ ## [3.8.4]
30
+
31
+ ### Fixed
32
+
33
+ - [Ruby] Fix proc exported to JS/JSON file(s) causing issues like git merge conflicts
34
+ (PR: https://github.com/fnando/i18n-js/pull/591)
35
+
36
+
37
+ ## [3.8.3]
38
+
39
+ ### Changed
40
+
41
+ - [Ruby] Generate translations in JS as `JSON.parse` instead of object literal for performance
42
+ (PR: https://github.com/fnando/i18n-js/pull/605)
43
+ (PR: https://github.com/fnando/i18n-js/pull/606)
44
+ (PR: https://github.com/fnando/i18n-js/pull/607)
45
+
46
+
47
+ ## [3.8.2] - 2021-03-18
48
+
49
+ ### Fixed
50
+
51
+ - [Ruby] Stop using deprecated method
52
+ (PR: https://github.com/fnando/i18n-js/pull/598)
53
+ - [Ruby] Fix typo in error class reference
54
+ (Commit: https://github.com/fnando/i18n-js/commit/cc075ad0a36e940205d0a14390379d69013d188e)
55
+
56
+
57
+ ## [3.8.1] - 2021-02-25
58
+
59
+ ### Fixed
60
+
61
+ - [Ruby] Fix performance issue reading config
62
+ (PR: https://github.com/fnando/i18n-js/pull/593)
63
+
64
+
65
+ ## [3.8.0] - 2020-10-15
66
+
67
+ ### Added
68
+
69
+ - [JS] Add option `scope` for `toHumanSize()`
70
+ (PR: https://github.com/fnando/i18n-js/pull/583)
71
+
72
+
73
+ ## [3.7.1] - 2020-06-30
74
+
75
+ ### Fixed
76
+
77
+ - [JS] For translation missing behaviour `guess`, replace all underscores to spaces properly
78
+ (PR: https://github.com/fnando/i18n-js/pull/574)
79
+
80
+
81
+ ## [3.7.0] - 2020-05-29
82
+
83
+ ### Added
84
+
85
+ - [JS] Allow options to be passed in when calling `I18n.localize`/`I18n.l`
86
+ (PR: https://github.com/fnando/i18n-js/pull/570)
87
+
88
+
21
89
  ## [3.6.0] - 2020-02-14
22
90
 
23
91
  ### Added
@@ -449,7 +517,15 @@ And today is not April Fools' Day
449
517
 
450
518
 
451
519
 
452
- [Unreleased]: https://github.com/fnando/i18n-js/compare/v3.6.0...HEAD
520
+ [Unreleased]: https://github.com/fnando/i18n-js/compare/v3.9.0...HEAD
521
+ [3.9.0]: https://github.com/fnando/i18n-js/compare/v3.8.4...v3.9.0
522
+ [3.8.4]: https://github.com/fnando/i18n-js/compare/v3.8.3...v3.8.4
523
+ [3.8.3]: https://github.com/fnando/i18n-js/compare/v3.8.2...v3.8.3
524
+ [3.8.2]: https://github.com/fnando/i18n-js/compare/v3.8.1...v3.8.2
525
+ [3.8.1]: https://github.com/fnando/i18n-js/compare/v3.8.0...v3.8.1
526
+ [3.8.0]: https://github.com/fnando/i18n-js/compare/v3.7.1...v3.8.0
527
+ [3.7.1]: https://github.com/fnando/i18n-js/compare/v3.7.0...v3.7.1
528
+ [3.7.0]: https://github.com/fnando/i18n-js/compare/v3.6.0...v3.7.0
453
529
  [3.6.0]: https://github.com/fnando/i18n-js/compare/v3.5.1...v3.6.0
454
530
  [3.5.1]: https://github.com/fnando/i18n-js/compare/v3.5.0...v3.5.1
455
531
  [3.5.0]: https://github.com/fnando/i18n-js/compare/v3.4.2...v3.5.0