Skip to content

Commit 9c75613

Browse files
committed
update flow diagram
1 parent 79439c3 commit 9c75613

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
75.5 KB
Loading

docs/knowledge-graph/multilingual.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ The parameter is called `__wl_lang` and specifies the ISO 639-1 two-letter code
2828

2929
For example, the internal routing may have the following configuration, URL example.org is served by:
3030

31-
1. graph https://data.example.org/en, which is also the default, when language is English
32-
1. graph https://data.example.org/it, when language is Italian
31+
1. graph <https://data.example.org/en>, which is also the default, when language is English
32+
1. graph <https://data.example.org/it>, when language is Italian
3333

34-
So that when requesting https://api.wordlift.io/data/https/example.org/page.html?__wl_lang=en, the Data API will route the request to the https://data.example.org/en graph, whereas requesting https://api.wordlift.io/data/https/example.org/page.html?__wl_lang=it will route the request to the https://data.example.org/it graph.
34+
So that when requesting <https://api.wordlift.io/data/https/example.org/page.html?__wl_lang=en>, the Data API will route the request to the <https://data.example.org/en> graph, whereas requesting <https://api.wordlift.io/data/https/example.org/page.html?__wl_lang=it> will route the request to the <https://data.example.org/it> graph.
3535

3636
## Cloud script
3737

3838
The [Cloud](/cloud) script (`bootstrap.js`) will automatically select the correct language by parsing the `html` element's `lang` attribute, for example the `<html lang="en">` tag will tell `bootstrap.js` to request the structured data for the English language, and the script will automatically append the `__wl_lang=en` to the request.
3939

40-
## Flowchart
40+
## WordLift Data API Multilingual Request Flow
4141

42-
![Flowchart](./images/multilingual_flow.png)
42+
![Flowchart](./images/multilingual_sequence.png)

0 commit comments

Comments
 (0)