website/developer-docs: add notice for translation requirements
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
7db3be604c
commit
93de363c86
|
@ -66,7 +66,7 @@ func AKAttrsToLDAP(attrs interface{}) []*ldap.EntryAttribute {
|
||||||
|
|
||||||
func (pi *ProviderInstance) GroupsForUser(user api.User) []string {
|
func (pi *ProviderInstance) GroupsForUser(user api.User) []string {
|
||||||
groups := make([]string, len(user.Groups))
|
groups := make([]string, len(user.Groups))
|
||||||
for i, group := range user.Groups {
|
for i, group := range user.GroupsObj {
|
||||||
groups[i] = pi.GetGroupDN(group.Name)
|
groups[i] = pi.GetGroupDN(group.Name)
|
||||||
}
|
}
|
||||||
return groups
|
return groups
|
||||||
|
|
|
@ -6,9 +6,23 @@ Translation in authentik is done in two places. Most of the text is defined in t
|
||||||
|
|
||||||
The frontend uses [lingui](https://lingui.js.org/), and the backend uses the built-in django translation tools.
|
The frontend uses [lingui](https://lingui.js.org/), and the backend uses the built-in django translation tools.
|
||||||
|
|
||||||
## Frontend
|
## Online translation
|
||||||
|
|
||||||
If you want to translate the frontend to a new language, ensure the language code is in the `package.json` file in `web/`:
|
To simplify translation you can use https://www.transifex.com/beryjuorg/authentik/, which has no local requirements.
|
||||||
|
|
||||||
|
## Local translation
|
||||||
|
|
||||||
|
### Prerequisites
|
||||||
|
|
||||||
|
- Node (any recent version should work, we use 16.x to build)
|
||||||
|
- Make (again, any recent version should work)
|
||||||
|
- Docker
|
||||||
|
|
||||||
|
In the root of the cloned repository, run `make gen-web` to generate the API Client used by the webinterface.
|
||||||
|
|
||||||
|
Afterwards, run `npm i` in the `/web` folder to install all dependencies.
|
||||||
|
|
||||||
|
Ensure the language code is in the `package.json` file in `web/`:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
// [...]
|
// [...]
|
||||||
|
|
Reference in a new issue