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
@jbockler made their first contribution in https://github.com/glebm/i18n-tasks/pull/629
@broekhuis00 made their first contribution in https://github.com/glebm/i18n-tasks/pull/635
@moguls753 made their first contribution in https://github.com/glebm/i18n-tasks/pull/641
@danimashu made their first contribution in https://github.com/glebm/i18n-tasks/pull/650
@fernandomm made their first contribution in https://github.com/glebm/i18n-tasks/pull/653
@timdiggins made their first contribution in https://github.com/glebm/i18n-tasks/pull/675
Full Changelog: https://github.com/glebm/i18n-tasks/compare/v1.0.15...v1.1.0