51f2f032d7
* Add `i18n` dependency We will use `i18n` to provide localization for Gollum's frontend. I chose this because it's a well-supported, pretty normal Ruby library. * Configure I18n - Locale files will be kept in `lib/gollum/locales/[lang].yml` - The available locales, to start, will be English (`en`). * Add I18n interface for mustache templates This commit adds an interface that allows mustache templates to get I18n translation strings, transform any arguments that may be present in them, and then render them on the frontend. This is our first real step to getting internationalizing the Gollum frontend.
9 lines
231 B
YAML
9 lines
231 B
YAML
de:
|
|
test_class:
|
|
author_info:
|
|
full: Autor %{author} ist vom %{location}
|
|
has_invalid_argument: Willkommen in %{no_matching_method}
|
|
hello_world: Hallo Welt
|
|
nonexistant_test_class:
|
|
never_called: Nie angerufen
|