AuraLocales

 Locales

<aura:application extends="force:slds">

    {!$Locale.language}<br/>

    {!$Locale.timezone}<br/>

    {!$Locale.numberFormat}<br/>

    {!$Locale.currencyFormat}<br/>

</aura:application>


({

    checkDevice: function(component) {

    var locale = $A.get("$Locale.language");

    alert("You are using " + locale);

    }

})


O/p

en
America/Los_Angeles
#,##0.###
¤#,##0.00;(¤#,##0.00)


Comments

Popular posts from this blog

Dynamic Standard Datatable Using Fieldset

Comparing Two Values Using Aura If

Lightning Grid Custom Datatable