Hello,
Another idea from the discord here. In order to download the translations only when needed, I need to know when was the last update. For that a timestamps can be added for each file.
Like this on our side we can save the last timestamp and check if there is a recent one. If it is we download the file and update, if not we ignore.
{
"fileID": {
"file": "error.arb",
"path": "",
"library": "",
"module": "",
"buildType": "",
"productFlavors": [ ],
"locales": [
{
"language": "en",
"region": "",
"script": "",
"lastUpdated": 1624001854,
"isRtl": false,
"name": "English",
"localizedName": "English",
"uri": ".../en/error.arb"
},
{
"language": "es",
"region": "MX",
"lastUpdated": 1624011854,
"script": "",
"isRtl": false,
"name": "Mexican Spanish",
"localizedName": "Español De México",
"uri": ".../es-MX/error.arb"
}
]
},