Heya!
I am working on a project that needs to be translated in many languages. While I was coding, I found that translating a big application is quit hard, so I'm here to ask what is the best approach to well structure the JSON files so that all strings adapt themselves depending on the variables they contain.
Let me explain
Let's take this as the best example:
The Jame's car broke 4 walls```
```fr – La voiture de/d'{{name}} a cassée {{number}} mur(s)
La voiture de Jame a cassée 4 murs```
In these examples, you can see that "wall" adapts its writing depending of the `number` variable.
Also, in French, the preposition `de` and `d'` are used depending on the first letter of the name. Each name that start with a vowel needs `d'`, instead, it'll need `de`.
There's many thing like this in many languages, and because I don't know all of them (hopefully 👀), I might done something dynamic.
So, here's my problem: what would be the best approach to achieve that?