update user_locale docs

This commit is contained in:
lesion
2021-11-09 13:06:29 +01:00
parent 1ea508fc8a
commit 965c143acd

View File

@@ -42,17 +42,19 @@ Where to save images
Probably you want to modify some text for your specific community, that's Probably you want to modify some text for your specific community, that's
why we thought the `user_locale` configuration: you can specify your version of why we thought the `user_locale` configuration: you can specify your version of
each string of **gancio** making a directory with your locales inside. each string of **gancio** making a directory with your locales inside.
For example, let's say you want to modify the text inside the `/about` For example, let's say you want to modify the text shown during registration:
page:
`mkdir /opt/gancio/user_locale` `mkdir /opt/gancio/user_locale`
put something like this in `/opt/gancio/user_locale/en.js` to override the about in
put something like this in `/opt/gancio/user_locale/en.json` to override the registration description in
english: english:
```js ```json
export default { {
about: 'A new about' "registrer": {
"description": "My new registration page description"
}
} }
``` ```
and then point the `user_locale` configuration to that directory: and then point the `user_locale` configuration to that directory (in your `config.json`):
```json ```json
"user_locale": "/opt/gancio/user_locale" "user_locale": "/opt/gancio/user_locale"
``` ```