Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 45
Registered: ‎05-02-2013
My Device: Q10
My Carrier: Q10

Convert a Arabic number to Latin

Hi,

 

I want to port my meego application to BB10 but I can't find the equivalent function to: toLatinNumbers()

 

which convert a Arabic number to Latin

 

like this:

locale.setLocale("ar_AE");

console.log("MLocaleTest:: locale.toLocalizedNumbers(): " + locale.toLocalizedNumbers("0123456789"));
console.log("MLocaleTest:: locale.toLocalizedNumbers(): - static: " + locale.toLocalizedNumbers("0123456789", "٠١٢٣٤٥٦٧٨٩"));
console.log("MLocaleTest:: locale.toLatinNumbers(): " + locale.toLatinNumbers("٠١٢٣٤٥٦٧٨٩"));

 

Help me please

 

Thanks