- Finally a way to get around those pesky frozen strings!
- By default, defrost is not loaded. You can turn this off by setting
TranslateSelf.defrosting = true
. - See
spec/frozen_strings_spec.rb
for more details and exciting ways of using it. - Using with frozen_string_literal: true is a great way to troll your coworkers.
- I'm reading Polished Ruby, and I just learned that it's faster to pass symbols than strings sometimes, so as this library is very performance-oriented, symbols it is!
- Refactored the translation part a bit.
- Now you can translate strings that are over 30 kilobyte! I couldn't test this too much because of the limits on the free plan, but if you can test this feature, I'd be really happy to hear how it is working for you.
- Add option to use the shorter
t_to_language_code
alias.
- Get rid of duplicated code. Update
benchmark.rb
.
- Add option to use ENV variable DEEPL_HOST
t_to_language_code
was too much typing, so changed it toto_language_code
.
- Add TranslatableString class to work around frozen string literal magic comment. Also will not crash with frozen strings now.
- The translated new string now knows what language it is.
- Gemfile.lock was not automatically updated, testing it a bit. Seems like you need to update it by hand!
- Commentation and cleanup of unneeded files.
- Initial release! You can now translate strings! Be free!