~singpolyma/dhall-rails

f95eae92f2808144559c214d4f312e37d4a71487 — Stephen Paul Weber 1 year, 4 months ago 40207e8
Fix I18n example
1 files changed, 5 insertions(+), 3 deletions(-)

M README.md
M README.md => README.md +5 -3
@@ 48,9 48,11 @@ If you have your own custom configuration files for your application that you wi

If you are still using the YAML-based simple translation framework for Rails, you may use Dhall files here as well.  This allows using real functions and string interpolations in your translation files, like so:

    en = {
      ducks = \(translation_name: < ducks >) -> \(args: { count: Natural }) ->
        "${Natural/show args.count} ducks"
    {
      en = {
        ducks = \(translation_name: < ducks >) -> \(args: { count: Natural }) ->
          "${Natural/show args.count} ducks"
      }
    }

Which can be invoked via: