mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 00:39:45 +02:00
Fix: conflicting strings issue in translations (#917)
* Fix conflicting strings issue in translations * Preserve structure of `customTranslations` * Use `deepmerge` to merge whole of `localized-strings` * Simplify and make deep property access on an object safe * Fix deep property accessor and rename it to idx
This commit is contained in:
parent
d18b09954b
commit
cfabaedc99
12 changed files with 94 additions and 66 deletions
|
@ -100,8 +100,16 @@ If you want to add additional custom translation strings, or override any of the
|
|||
```json
|
||||
{
|
||||
"localized-strings": {
|
||||
"id": "string",
|
||||
"id2": "string2"
|
||||
"docs": {
|
||||
"id": {
|
||||
"title": "string1",
|
||||
"sidebar_label": "string2"
|
||||
},
|
||||
"version-0.0.1-id": {
|
||||
"title": "string3",
|
||||
"sidebar_label": "string4"
|
||||
}
|
||||
}
|
||||
},
|
||||
"pages-strings" : {
|
||||
"id3": "string3",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue