Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge upstream/master Changes Into Integration #4

Open
wants to merge 93 commits into
base: integration
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
ed70149
Fix #41 ArgumentError: comparison of Pathname with String failed
MichaelHoste Jan 15, 2021
afce75b
Bump version to 1.23 + Changelog
MichaelHoste Jan 17, 2021
5064a40
Chapter on frontend localization
MichaelHoste Feb 15, 2021
1c61530
Improve README (frontend localization)
MichaelHoste Feb 15, 2021
cf82e9f
Try "dist: focal" and jruby-head to fix error between jruby and lowes…
MichaelHoste Mar 10, 2021
5bfb87d
Use bionic to try to be compatible with Ruby < 2.4 (openssl issue)
MichaelHoste Mar 10, 2021
2e40507
Remove 2.1 (not compatible in Travis on Bionic), add "ruby --version"…
MichaelHoste Mar 10, 2021
cbd4e10
Remove failing test on travis with JRuby (but works in dev)
MichaelHoste Mar 10, 2021
35ad1b3
Fix "custom language" alphanumeric => alphabetic
MichaelHoste Mar 24, 2021
0ab5789
Remove special code that added missing locales
MichaelHoste May 7, 2021
972734c
Better warnings for wrong locales in config file + specs, bump Rspec,…
MichaelHoste Jun 15, 2021
994f01c
Trigger travis build after migration
MichaelHoste Jun 15, 2021
8eb2e3f
Bump rspec lowest dependency
MichaelHoste Jun 15, 2021
490d193
Fix lowest rspec dependency
MichaelHoste Jun 15, 2021
0ea3294
Update travis-ci.org to travis-ci.com build image
MichaelHoste Jun 15, 2021
a59ed68
Bump version to 1.24 + changelog
MichaelHoste Jun 15, 2021
6e54034
Fix issue with empty values in localization.xx.yml files that were re…
MichaelHoste Jul 14, 2021
215f87b
use double splat operator (**) to pass hash as keyword argument (for …
MichaelHoste Jul 14, 2021
c3cdfb2
bump version to 1.26
MichaelHoste Jul 14, 2021
f6ddb7f
missing word changelog
MichaelHoste Jul 14, 2021
ea68764
Small update README
MichaelHoste Sep 8, 2021
a449a7e
Newlines in README
MichaelHoste Sep 8, 2021
5346f1e
Better pointers for frontend localization
MichaelHoste Sep 27, 2021
eff4e77
Small improvements
MichaelHoste Sep 27, 2021
ce74575
Small improvement
MichaelHoste Sep 27, 2021
028ab93
wording
MichaelHoste Sep 27, 2021
3595ec0
fix links
MichaelHoste Sep 27, 2021
c4c9eeb
Fix bad anchor
MichaelHoste Sep 27, 2021
db4f6ef
Improve symbol/string consistency of `source_locale` and `target_loca…
MichaelHoste Oct 6, 2021
d0a48d2
Bump version to 1.27
MichaelHoste Oct 6, 2021
d643be9
Bump GetText to `3.3.7` to `3.4.2` (Ruby 3.1 compatibility and locale…
MichaelHoste Jan 17, 2022
051bf73
Add Ruby 3.1 to Travis + red-datasets to have correct plurals
MichaelHoste Jan 17, 2022
4693f65
Fix test with different plural forms depending on GetText versions
MichaelHoste Jan 17, 2022
482e31d
Remove `red-datasets` dependency
MichaelHoste Jan 17, 2022
251ebc2
fix date changelog
MichaelHoste Jan 17, 2022
6520309
Better text for Fallback (and that works with GetText now)
MichaelHoste Jan 17, 2022
de95a88
Set default GetText/Locale locale (last fallback) as config.source_lo…
MichaelHoste Jan 31, 2022
e1b7cdc
Bump to 1.29
MichaelHoste Feb 1, 2022
cb9b4d8
Add RELEASE.md to gitignore
MichaelHoste Feb 1, 2022
8c00ae8
Migrate from Travis to GitHub Actions (#46)
MichaelHoste Feb 17, 2022
b3b36af
Rename tests to "Build Status" to name badge and force reference bran…
MichaelHoste Feb 17, 2022
3c7fabb
Don't raise an issue for a conflicted `.translation_io` file anymore,…
MichaelHoste Mar 23, 2022
a15f3b0
Cleaner comments in `.translation_io` file
MichaelHoste Mar 23, 2022
5cb556d
Bump version to 1.30 + CHANGELOG
MichaelHoste Mar 23, 2022
ce89ec5
Create limitations section to explain the issue with `case`/`when` a…
MichaelHoste Mar 24, 2022
bb1a4bd
Typo / improvement README
MichaelHoste Mar 24, 2022
b876426
Typo README
MichaelHoste Mar 24, 2022
b0c56d9
Add alias in YAML for new spec
MichaelHoste Apr 4, 2022
1bde6ef
Create `TranslationIO.yaml_load()` method to load YAML with aliases u…
MichaelHoste Apr 4, 2022
336a820
Bump version to 1.31 + Changelog
MichaelHoste Apr 4, 2022
78cc892
Fix ERB parsing bug with `case` in new GetText version (>= 3.4.3) + n…
MichaelHoste May 20, 2022
35efaca
Fix bad require
MichaelHoste May 20, 2022
79749af
Bump version to 1.32 + CHANGELOG
MichaelHoste May 20, 2022
269913c
Remove "limitations" section that is now fixed
MichaelHoste May 20, 2022
ceeee39
Better simpler CONTRIBUTING.md
MichaelHoste Sep 16, 2022
c3b557d
Update README with link to Angular package
MichaelHoste Oct 6, 2022
a9d1390
README: Update code syntax from three ticks to three tilds
MichaelHoste Oct 7, 2022
d990a89
Fix typos in README.md
didier-84 Oct 12, 2022
0fcf32e
Wording
MichaelHoste Oct 20, 2022
d741107
Update list of clients (README)
MichaelHoste Oct 21, 2022
00b788f
README: table of contents in h2
MichaelHoste Oct 21, 2022
7ddde0d
README: table of contents in h2
MichaelHoste Oct 21, 2022
51ddc43
typo README
MichaelHoste Oct 24, 2022
f4cca89
Better list of clients
MichaelHoste Oct 24, 2022
f5953a7
Typo in link
MichaelHoste Oct 24, 2022
3f775c1
Match I18n fallbacks in GetText (fixes #48) (#50)
MichaelHoste Nov 7, 2022
0ebca71
Bump version + changelog
MichaelHoste Nov 7, 2022
57808a0
Fix plural rule in source PO file by manually adding it (for GetText …
MichaelHoste Nov 16, 2022
78e59d3
Bump version 1.33 + changelog
MichaelHoste Nov 16, 2022
1de0f52
Fix links in changelog
MichaelHoste Jan 12, 2023
d9272e4
Add Ruby 3.2 to testing matrix + Update test.yml to really test "3.0"…
MichaelHoste Jan 12, 2023
ff737a0
Fix `File.exists?` to `File.exist` (compatibility with Ruby 3.2)
MichaelHoste Jan 12, 2023
ca482f7
Changelog + Bump version to 1.35
MichaelHoste Jan 12, 2023
79a96b3
Update README with direct "translation.io/rails" link
MichaelHoste Feb 7, 2023
96c8974
Update Lingui URL
MichaelHoste Feb 15, 2023
5b5d477
Fix `translation.io/usage` to `translation.io/rails/usage` and many r…
MichaelHoste Mar 26, 2023
c8e576f
Init cleanup: keep YAML files and keys from locales that are not in t…
MichaelHoste Apr 26, 2023
aa03abd
Bump to version 1.36
MichaelHoste May 3, 2023
45d57a5
Remove old Ruby 2.2 from CI (CI triggers an error unrelated to our code)
MichaelHoste May 3, 2023
608d3b4
Update README.md
didier-84 May 4, 2023
91351e7
Improve README (remove `$` in bash commands to allow copy-paste)
MichaelHoste May 22, 2023
9b76837
Bump GetText dependency ("3.4.4 added racc to runtime dependencies be…
MichaelHoste Jun 26, 2023
67f7909
Add Ruby `3.3.0-preview1` in Github Actions
MichaelHoste Jun 26, 2023
f932a9e
Remove 3.3.0-preview1 from test pipeline with lowest dependencies
MichaelHoste Jun 26, 2023
3136a1a
Changelog + bump version to 1.37
MichaelHoste Jun 27, 2023
7f02656
Update gemspec links
MichaelHoste Jul 12, 2023
3b3e088
Bump GetText dependencies to max 3.4.9
MichaelHoste Oct 23, 2023
c12d760
Bump version to 1.38 and CHANGELOG
MichaelHoste Oct 23, 2023
31faa13
Fix bug when YAML is commented and only the language key is present
MichaelHoste Feb 9, 2024
5b33dcd
Bump to 1.39
MichaelHoste Feb 9, 2024
832762e
Better bugfix for empty YAML files (only the language prefix)
MichaelHoste Feb 9, 2024
35c0c4a
Bump to version 1.40
MichaelHoste Feb 9, 2024
d329dd8
Merge remote-tracking branch 'upstream/master' into integration-copy
aaronskiba May 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Build Status

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- '2.3'
- '2.4'
- '2.5'
- '2.6'
- '2.7'
- '3.0'
- '3.1'
- '3.2'
- '3.3.0-preview1'
- 'jruby-9.1.17.0'
gemfile:
- lowest
- latest
exclude:
# Ruby > 2.6 removed BigDecimal.new which was used on Rails 4.1 (removed with Rails 4.2 though)
- ruby: '2.7'
gemfile: lowest
- ruby: '3.0'
gemfile: lowest
- ruby: '3.1'
gemfile: lowest
- ruby: '3.2'
gemfile: lowest
- ruby: '3.3.0-preview1'
gemfile: lowest
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
CC_TEST_REPORTER_ID: 945dfb58a832d233a3caeb84e3e6d3be212e8c7abcb48117fce63b9adcb43647
steps:
- uses: actions/checkout@v2
- name: Setup Bundler 1.x for Rails 4.x
if: ${{ matrix.gemfile == 'lowest' }}
run: echo "BUNDLER_VERSION=1.17.3" >> $GITHUB_ENV
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # runs bundle install and caches installed gems automatically
bundler: ${{ env.BUNDLER_VERSION || 'latest' }}
- run: ruby --version
- name: Run specs
run: bundle exec rspec
- name: Publish code coverage
if: ${{ matrix.ruby == '3.1' && matrix.gemfile == 'latest' }} # only one is needed!
uses: paambaati/[email protected]
with:
debug: true
verifyDownload: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ coverage
Gemfile.lock
.ruby-version
.bundle
RELEASE.md
57 changes: 0 additions & 57 deletions .travis.yml

This file was deleted.

119 changes: 118 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,121 @@
# Changelog
# Changelog

## [v1.40](https://github.com/translation/rails/releases/tag/v1.40) (2024-02-09)

#### Fixes (bugs & defects):

* Fix *more* bugs when YAML file is commented and the language key is still present.

## [v1.39](https://github.com/translation/rails/releases/tag/v1.39) (2024-02-09)

#### Fixes (bugs & defects):

* Fix bug when YAML file is commented and the language key is still present.

## [v1.38](https://github.com/translation/rails/releases/tag/v1.38) (2023-10-23)

#### Fixes (bugs & defects):

* Bump GetText dependency to 3.4.9 (fix `\r` escape and other improvements)

## [v1.37](https://github.com/translation/rails/releases/tag/v1.37) (2023-06-27)

#### Fixes (bugs & defects):

* Prepare compatibility with Ruby 3.3 by bumping GetText dependency

## [v1.36](https://github.com/translation/rails/releases/tag/v1.36) (2023-05-03)

#### Fixes (bugs & defects):

* Keep YAML files and keys from locales that are not in the configuration file (#54)

## [v1.35](https://github.com/translation/rails/releases/tag/v1.35) (2023-01-12)

#### Fixes (bugs & defects):

* Compatibility with Ruby 3.2 (Fix `File.exists?` to `File.exist?`)

## [v1.34](https://github.com/translation/rails/releases/tag/v1.34) (2022-11-16)

#### Fixes (bugs & defects):

* Fix plural rule in source PO file by manually adding it (for GetText >= 3.3.9)

## [v1.33](https://github.com/translation/rails/releases/tag/v1.33) (2022-11-07)

#### New features:

* Match I18n fallbacks in GetText (cf. [#48](https://github.com/translation/rails/issues/48) and [#50](https://github.com/translation/rails/pull/50)). Thanks @ryanb!

**Important information:** a new directory with PO/MO files for the source language will be created in your `locales/gettext` directory.
Don't worry, it's expected: the purpose is to unify fallback management.

## [v1.32](https://github.com/translation/rails/releases/tag/v1.32) (2022-05-20)

#### Fixes (bugs & defects):

* Fix bad `html.erb` parsing when there is a `case` in it, using new gettext 3.4.3 Erubi parser. (cf. [ruby-gettext/gettext PR #91](https://github.com/ruby-gettext/gettext/pull/91)).

## [v1.31](https://github.com/translation/rails/releases/tag/v1.31) (2022-04-04)

#### Fixes (bugs & defects):

* Fix Psych 4 breaking change when loading YAML files with aliases. See [issue #47](https://github.com/translation/rails/issues/47).

## [v1.30](https://github.com/translation/rails/releases/tag/v1.30) (2022-03-23)

#### New features:

* Don't raise an issue for a conflicted `.translation_io` file anymore, but fix it directly.

## [v1.29](https://github.com/translation/rails/releases/tag/v1.29) (2022-02-01)

#### Fixes (bugs & defects):

* Use `source_locale` as last fallback for GetText (instead of default "en").

## [v1.28](https://github.com/translation/rails/releases/tag/v1.28) (2022-01-17)

#### New features:

* Bump GetText dependency to 3.4.2 to support:
* Automatic locale fallbacks `fr_BE_Foo` -> `fr_BE` -> `fr` (cf. [ruby-gettext/gettext#89](https://github.com/ruby-gettext/gettext/issues/89))
* Ruby 3.1 (cf. [ruby-gettext/gettext#92](https://github.com/ruby-gettext/gettext/issues/92))

## [v1.27](https://github.com/translation/rails/releases/tag/v1.27) (2021-10-06)

#### Fixes (bugs & defects):

* Improve symbol/string consistency of `source_locale` and `target_locales`.

## [v1.26](https://github.com/translation/rails/releases/tag/v1.26) (2021-07-14)

#### Fixes (bugs & defects):

* Fix syntax issue with Ruby 3.0 and release v1.25 (that is now yanked!)

## [v1.25](https://github.com/translation/rails/releases/tag/v1.25) (2021-07-14)

#### Fixes (bugs & defects):

* Don't remove empty keys in `localization.xx.yml` files when `config.yaml_remove_empty_keys = true`, they may be useful for delimiters, etc.

## [v1.24](https://github.com/translation/rails/releases/tag/v1.24) (2021-06-15)

#### Fixes (bugs & defects):

* Force max version of GetText (3.3.7) to avoid dependency to external online request (see [here](https://github.com/ruby-gettext/gettext/issues/85#issuecomment-861462382) for discussion).

#### New features:

* Warnings when trying to init/sync with duplicate or empty `target_locales` in the configuration file.

## [v1.23](https://github.com/translation/rails/releases/tag/v1.23) (2021-01-17)

#### Fixes (bugs & defects):

* Fix `ArgumentError: comparison of Pathname with String failed` if `I18n.load_path` contains a Pathname instead of a String ([#41](https://github.com/translation/rails/issues/41)). Thanks @11mdlow!

## [v1.22](https://github.com/translation/rails/releases/tag/v1.22) (2020-07-27)

Expand Down
4 changes: 0 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

Feel free to contribute to this repository by creating a Pull Request.

Create an issue or reach us by email ([email protected]) before doing
the work if you want to increase the chances for your Pull Request to be
accepted.

## Pull Request Process

1. Fork the repository.
Expand Down
Loading
Loading