Azure AD B2C Custom policy language translation - azure

I have declared a set of supported langauges in my custom policy.
But what happens is, Microsoft implicitly convert some text and messages to other languages eventhough when i haven't decalred that langugae to be supportred.
(Eg) I haven't supported croatian language in my app, so when i pass croatian langauge in my query param, it should point to default language referred in the custom policy, Because croatian is in my unsupported langugaes list. what in reality some of the messages gets converted to croatian and shown in UI.

It is true. And Custom Policies out of the box supported language customization but support is limited to few fields/inputs/labels/messages. If your application support multi language then you can add your own customization.
(Eg) I haven't supported croatian language in my app, so when i pass croatian langauge in my query param, it should point to default language referred in the custom policy, Because croatian is in my unsupported langugaes list. what in reality some of the messages gets converted to croatian and shown in UI.
Update: Currently this is not possible and you need to limit supported languages from your application it self.
Typical Multi Language Scenario for a web/ native application (may be a workaround):
Web application show up the list of supported languages either in drop down or any user friendly way
Application will capture the locale from the customer selected language and append to the request URL.
If that locale is valid at B2C side it will start displaying Ux in that language
There is only 1% changes where customers can actually edit the Authorize URL to modify the locale. Your concern is still valid but based on above scenario itwill become less impact on your application.

If you would like to force the locale you can use the query string when requesting the B2C application.
?ui_locales={en}
Where you would replace {en} with the locale you support for more info see the offical docs

Related

Achieving keyword localization for voice based application

I'm creating a voice input only ES5 application using a free speech to text service. The service will send user's speech transcript in their native language to my application.
How can i localize keywords in my application so that the user can use those keywords in their native language. I'm aware of the UI based localization where strings that are visible to user are localized but the underlying value for those ui elements have english values. But obviously this does not work for voice transcript where values are in user's native language.
Is there a way to achieve this without using a paid dynamic translation service?

Is there a browser API that provides access to the built in list of languages?

In my application, I have a localized list of languages that is sent down from the server when the application loads.
The browser already contains a localized list of languages (you can see it by going to settings > languages > add a language in a chromium browser (see photo below).
Is there an API that will retrieve the same localized list of languages? I am trying to avoid managing additional localized text, if possible.

What is the "Flow_type" attribute in Microsoft's Azure ARM Template for Application Insights?

It's described as a non-required field, but it's an enum (without any other listed options) and the description is vague: Used by the Application Insights system to determine what kind of flow this component was created by. This is to be set to 'Bluefield' when creating/updating a component via the REST API. - Bluefield.
My rule of thumb is don't include anything extra (KISS) that doesn't break my application, but if there's some benefit I can get out of it, I'd like to know. Thanks!
Reference: https://learn.microsoft.com/en-us/azure/templates/Microsoft.insights/components?toc=%2Fen-us%2Fazure%2Fazure-resource-manager%2Ftoc.json&bc=%2Fen-us%2Fazure%2Fbread%2Ftoc.json
Flow_Type and Request_Source Do not have any effect in the current version, and they might be deprecated in future versions of App Insights API

XPages - presenting an application in multiple languages

I have an XPages application which is available in 4 languages. I would like that each user can choose the language in which the application is presented to him. What is the best way of doing this? It seems to me that I need to set a user specific parameter but am not sure how to go about this. At the moment I use a scope variable to determine which language the application is displayed in. This scope variable is server specific so all users see the application in the same language. Now I would like the application to be presented in the langauge chosen by each user (although all users are accessing the application on the same server). In Notes this was possible by writing a value to the user .ini file. Is there an XPages equivalent of this?
The XPages Toolkit project has an Language bean that gives the options to set a specific language to an application or let the user decide.
http://www.openntf.org/main.nsf/project.xsp?r=project/XPages%20Toolkit
If you can't use the extension OSGI plugin checkout the java source on github
https://github.com/OpenNTF/XPagesToolkit
An implement what you need

JSF - typing with regional language

I created a web application using JSF framework. My application needs some text areas for convert the content into regional language. How it is possible to done by using google input?. or is there is any other scenario for typing with regional language?
Use unicode.js which is a small and easy to use javascript library to enable native input support in textfields. It uses Google Transliteration API combined with some javascript to enable unicode support in text input fields and textareas or anything where user can type in.

Resources