private async void LoadLocales() { locales = await AvailableLanguages.getLocales("", CloureManager.lang); btnSubscribePremium.Content = locales.GetNamedString("subscribe_premium"); txtAccountAddOn.Content = locales.GetNamedString("forget_session"); }
private async void LoadLocales() { JsonObject json_res = await AvailableLanguages.getLocales("invoicing", CloureManager.lang); txtAdvice.Text = json_res.GetNamedString("press_f2_to_finish"); tbDatePrompt.Text = json_res.GetNamedString("date"); tbCompanyBranchPrompt.Text = json_res.GetNamedString("branch"); tbReceiptType.Text = json_res.GetNamedString("receipt_type"); tbCustomerPrompt.Text = json_res.GetNamedString("customer"); tbCustomerNamePrompt.Text = json_res.GetNamedString("customer_name"); tbSaldoPrompt.Text = json_res.GetNamedString("balance"); tbProductsServicesPrompt.Text = json_res.GetNamedString("products_services"); tbQuantityPrompt.Text = json_res.GetNamedString("quantity"); tbProductPrompt.Text = json_res.GetNamedString("product_service"); tbObservationsPrompt.Text = json_res.GetNamedString("observations"); }