Skip to content

Releases: glebm/i18n-tasks

v1.1.1

24 Nov 11:54

Choose a tag to compare

  • Prism: Fixes translate calls on non-I18n receivers being processed.
  • Prism: Adds candidate keys for model_name.human and human_attribute_name.
    • Event.human_attribute_name(:title) will now match activerecord.attributes.event.title or attributes.title.
  • Prism: Candidate keys were not added to the used_tree.
  • Works around a concurrency bug by reverting to serial scanning.

Full Changelog: v1.1.0...v1.1.1

v1.1.0

14 Nov 21:16

Choose a tag to compare

  • Dropping support for Ruby < 3.1 #631
  • OpenAI translator now uses language names instead of locale codes. #630
  • Renames RubyAstScanner to RubyScanner (deprecated RubyAstScanner name).
  • Adds Prism as a dependency.
  • Merges PrismScanner into RubyScanner, now configured with:
search:
  prism: "rails"

to use the Prism scanner with more Rails support and

search:
  prism: "ruby"

to use the Prism Scanner without Rails support.

  • Implements ERB-scanner using Prism, activated with same config as above.
    • The Prism-based scanner handles comments differently vs the whitequark/parser-based scanner does.
    • The usage will be for the magic comment line instead of the subsequent line.
    • This should not affect the results of the CLI tasks.
  • Loads environment variables via dotenv if available. #395
  • Adds CLI command check-prism to try the new parser out and see the differences in key detection.
  • The Prism-based scanner supports candidate_keys for Rails translations, allowing relative translations in controllers to match either the key scoped to controller and action or only to the controller.
  • Translation services now catch errors and save partial results #642
  • Prism: Skips translations form cyclic calls instead of throwing error.
  • Adds own client for Google Translate instead of easy_translate gem.

New Contributors

Full Changelog: v1.0.15...v1.1.0

v1.0.15

03 Nov 14:53

Choose a tag to compare

Changes

  • Adds a progress bar for translate tasks. #606
  • New watsonx translation backend. #598
  • Improved newline handling for Google Translate backend. #597
  • Spaces are now allowed in key names. #604
  • Better handling of parenthesis-like characters in key names. #550
  • Scanners:
  • Silence parser warning and patch version mismatch for Ruby 3.4.x > 3.4.0 #612
  • Uses AST-parser for all ERB-files, not just .html.erb
  • [Fixed regex in PatternScanner] (#572)
  • Adds contextual parser to support more Rails-translations. #565
  • RailsModelMatcher now handles calls without model. #603
  • OpenAI:
    • Model now defaults to gpt-4o-mini. #622
    • Append JSON instructions to OpenAI system prompt to be able to use response_format json_object #615
    • Set log_errors: true on OpenAI::Client options in order to display HTTP client errors. #614
  • DeepL:
    • Adds support for locale aliases. #609

New Contributors

Full Changelog: v1.0.14...v1.0.15

v1.0.14

10 May 02:49

Choose a tag to compare

v1.0.12

18 Sep 06:53

Choose a tag to compare

v1.0.9

07 May 07:18

Choose a tag to compare

v1.0.4

25 Mar 09:42

Choose a tag to compare

v1.0.2

24 Mar 16:34

Choose a tag to compare

See CHANGES.md for changelog

v1.0.0

22 Mar 22:18

Choose a tag to compare

See CHANGES.md for changelog

v0.9.34

17 Mar 02:41

Choose a tag to compare

See CHANGES.md for changelog