Skip to content

Commit 3f90f53

Browse files
aguacongasgithub-actions
and
github-actions
authored
test: fix in memory issue (#566)
* test: fix in memory issue * docs: add localization sample Co-authored-by: github-actions <[email protected]>
1 parent 317e7f6 commit 3f90f53

File tree

6 files changed

+963
-833
lines changed

6 files changed

+963
-833
lines changed

doc/LOCALIZATION.md

+24-1
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,37 @@ You provide translations for each English string resource used by the server or
1414

1515
![culture](assets/culture.png)
1616

17-
The application doesn't provide a list of keys, but instead, a warning log is written each time a key is not found for a specific culture.
17+
A warning log is written each time a key is not found for a specific culture.
1818

1919
In the browser console for application resources
2020
![app key not found sample](assets/app-localized-key-not-found.png)
2121

2222
In the server log for server resources
2323
![server key not found sample](assets/server-localized-key-not-found.png)
2424

25+
The list of keys and a sample of translatation can be found in [Localization-fr.json](../src/Aguacongas.TheIdServer.Duende/Localization-fr.json).
26+
27+
### Seedind
28+
29+
Files named *Localization-{culture id}}.json* at the server root level will be loaded in the database at startup if the **Seed** option is set.
30+
They must follow the same structure than [Localization-fr.json](../src/Aguacongas.TheIdServer.Duende/Localization-fr.json): an array of key/value pair.
31+
32+
```json
33+
[
34+
{
35+
"key": "(required)",
36+
"value": "(obligatoire)"
37+
},
38+
{
39+
"key": "{0} <small>is requesting your permission</small>",
40+
"value": "{0} <small>demande votre autorisation</small>"
41+
},
42+
...
43+
]
44+
```
45+
46+
The cultire id must be a valid culture id supported by the .NET framework.
47+
2548
## Clients, APIs, and Identities
2649

2750
To localize consents and grants screen, you can define localized strings for names and descriptions of your clients, APIs, API's scopes, and identity resources.

0 commit comments

Comments
 (0)