Waterhole features a powerful localization system using
Project Fluent on top of the Laravel Translator.
If you're developing an extension, or if your forum is
multi-lingual, you should take advantage of Waterhole's internationalization
capabilities.
Fluent is a fully-featured localization system for natural-sounding
translations. Read the
Fluent Syntax Guide to learn more
about syntax and its benefits. See also
Good Practices for Developers.
Waterhole uses the
laravel-fluent package to replace
the default Laravel translator with one that supports loading translations from
.ftl files.
Translations are stored in files within the resources/lang directory. Within
this directory, create a subdirectory for each language you want to support. You
can add translations in both .php files in the Laravel
short key format,
and in Fluent .ftl files, with the latter taking precedence.