I want to display my items display name and my items description in the same language than the players title account preferred language. I want to support 3 languages, English, French and German. If the players title account preferred language is not set or if it is different than those 3 languages, then I want to display the English translation in my game.
How can I add translations to my items? I want to create translations for item display name and item description.
How can I get the corresponding translation in the client when I call PlayFabClientAPI.GetCatalogItems?
My client code:
string MyCatalog; private async Task GetCatalog() { var result = await PlayFabClientAPI.GetCatalogItemsAsync(new PlayFab.ClientModels.GetCatalogItemsRequest() { CatalogVersion = MyCatalog }); foreach (var entry in result.Result.Catalog) { Console.WriteLine($"{entry.ItemId} {entry.DisplayName} {entry.Description} {entry.VirtualCurrencyPrices}"); } if (result.Error != null) Console.WriteLine(result.Error.GenerateErrorReport()); else Console.WriteLine("Listed items successful!"); }