README.md in traco-2.0.0 vs README.md in traco-2.1.0
- old
+ new
@@ -95,11 +95,13 @@
end
```
then `#title` will return `nil` if there is no translation in the current locale, instead of falling back to the default locale.
+If you still want to fall back in some cases, call `post.title(fallback: true)`.
+
### Overriding methods
Methods are defined in an included module, so you can just override them and call Traco's implementation with `super`:
```ruby
@@ -142,10 +144,9 @@
Possible improvements to make:
* Validation that checks that at least one translation for a column exists.
* Validation that checks that every translation for a column exists.
- * Option to disable fallback.
* Scopes like `translated`, `translated_to(locale)`.
* Support for region locales, like `en-US` and `en-GB`.
-->