Hi All,
I have a question about multilingual and internationalised (localised) applications, and how (if at all) this would affect API design.
If we take the example of a US news site which has a CMS, and we had a basic page structure with the following fields:
Now, if we want to provide the content in Spanish (language code "es"), what happens at the CMS side is we essentially create the page again with fields in the database specific to this language. So for Spanish, we would create something like:
Now a common way sites determine which language should be used is via URL parameters:
What I'm curious to know is, from an API perspective / from an edge management perspective, for each language, do you need to create an API to manage each version of the content?
or would you break it down by language?
When calling an API, how do you define which API to call? Do you (or can you?) use some sort of witchcraft on the back end which would support the routing of your URL parameters which could potentially give you something like one of the following
Or is there some sort of hybrid thing
If it is unclear, please let me know and I can try explain further, but I didn't want to write a million words.
Cheer
David