README.md in translate_self-0.4.0 vs README.md in translate_self-0.5.0
- old
+ new
@@ -75,12 +75,23 @@
```ruby
finn.translate
# I am a Finn
```
-## Beware!
+## Using with `# frozen_string_literal: true`
-Does not work if you freeze the strings.
+~~Does not work if you freeze the strings.~~
+
+Now it does!
+Just use the classes `TranslatableString` (aliased to `TString`).
+So even if you have a magic comment making all your strings frozen,
+you can still use the `translate` method like below:
+
+```ruby
+hello = TranslatableString.new('hello', language: 'en', to_language: 'fi')
+hello.translate
+# "Moi"
+```
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.