I have a resx file in my Xamarin.forms project, and I have webapi that returns translations in key value pair format. Is there any possible way that I can update my resx files using those key value pairs at run-time.(Not interested Sqlite way of Localization)
Asked
Active
Viewed 331 times
0
-
Possible duplicate of [this question](https://stackoverflow.com/questions/676312/modifying-resx-file-in-c-sharp)? – Tom Dec 04 '18 at 13:35
-
@Tom I think it's for WPF, I want to do this in Xamarin.Forms. There is no ResXResourceReader class available with Xam forms – Favas Kv Dec 05 '18 at 04:07
-
1Unfortunately, now is not possible to do that.Maybe you can use customed .json file to update at runtime. – Junior Jiang Dec 06 '18 at 01:17
-
@FavasKv, how did you finally stored and used translations retrieved from webapi? – Mukesh Modhvadiya Jun 04 '19 at 08:48
-
@MukeshModhvadiya I created a singleton class with list of key-value pair translations. – Favas Kv Jun 04 '19 at 10:21
-
@FavasKv, Thanks for the information! And you also stored the translations in file/db? – Mukesh Modhvadiya Jun 04 '19 at 12:39
-
1@MukeshModhvadiya Yes, it stored in db and updated on each run using api call. – Favas Kv Jun 11 '19 at 05:16