9

This feature has now been added as of Summer '15 https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/labels_value_provider_platform.htm


7

This has more to do with the ISO 8601 Date format than Salesforce. A week in a year starts on the first thursday in the calendar. ISO 8601 Week Dates If 1 January is on a Monday, Tuesday, Wednesday or Thursday, it is in week 01. If 1 January is on a Friday, Saturday or Sunday, it is in week 52 or 53 of the previous year (there is no week 00). 28 ...


6

This would need to get fixed in aura itself to allow one to specify the decimal places. Since percent is fairly standard across all localizations you could 'hack' it by adding this function to a helper, which just adjusts the localization format string for the NumberFormat it creates for percent: ({ formatPercent: function(num, decimals) { var ...


6

Use custom labels in Lightning components with the $Label global value provider. Use this syntax to access custom labels in Lightning components: $Label.c.labelName for the default namespace $Label.namespace.labelName if your org has a namespace Here are some examples. Label in a markup expression using the default namespace {!$Label.c.labelName} ...


3

This is confirmed by Salesforce permier+ support as a bug. Fix has no ETA yet. As a consequence together with How to render the corresponding field-label automatically in Lightning? IMHO you can't use Lightning for complex I18n/L10n scenarios yet. This has been recognized as a Bug at our end and currently an investigation has been raised to fix this....


3

In Lightning Components, these are called global value providers. Currently there are only a few, including $Locale, and $Browser. Some of the very useful global variables that exist in Visualforce such as the two you state and others like $User, $Profile, and others have not yet been implemented in Lightning Component Framework.


2

Marketing Cloud processes dates to CST. You can use the SystemDateToLocalDate Function to deal with this (assuming Salesforce is your local time). eg, Assuming these are captured in a field called Date, %%=SystemDateToLocateDate(Date)=%%


1

A new platform bug W-7059094 has been created: "$A.localizationService.parseDateTime returns incorrect date for language Deutsch" The suggested workaround is not applicable in our case because our app doesn't use a static dateTimeFormat for everyone that we can modify/control, but rather uses the dateTimeFormat coming from $Locale user context data.


1

In your display you should simply have %%ProductName%% In your recommendations call you should pass the locale similar to this: https://XXXXX.recs.igodigital.com/rr/v2/XXXXXXXXX/l/1/%%emailaddr%%?locale=%%localevalue%% And then in your sending DE you should have values for localevalue like nl-be


1

That would seem to be a very difficult one since Palestine is in the West Bank, parts of which are occupied by Israel. On the Arabic side, it directly borders Jordan to the East (ar_JO), Syria (ar_SY) is to the NE and Lebanon (ar_LB) is to the North. You'll need to choose one of those three. The time zone should be EEST.


1

I guess you used the Query Editor in the developer console and got that error. However, if you use the Format() in code, I think it would work. Opportunity opp = [SELECT Id, format(CloseDate) editDate FROM Opportunity limit 1]; system.debug(opp); system.debug(opp.get('editDate'));


1

You should be able to make an empty lightning app and component and call your localizationservice function in the callback of that component creation. Something like this: <apex:page > <!--rest of your page stuff --> <apex:includeLightning /> <div style="display: none !important; id="lightning" /> <script> ...


1

@ScottW Sorry, I can't add a coment, so I will write an answer. Your answer about ISO week number in Apex does not work when there are 53 weeks in the given year. Try the following code: DateTime.newInstanceGmt(Date.newInstance(2015, 12, 28).toStartOfWeek(), Time.NewInstance(12,0,0,0)).format('w') It returns 1, instead of 53 (see: https://www....


Only top voted, non community-wiki answers of a minimum length are eligible