Localization and translation
It is important to take localization and translation into consideration from the beginning as it can become difficult and costly to apply them later. Fortunately, the platform can do a lot of work for you.
Localization
When using the native user interface, it automatically formats the values of numeric and date fields according to the Locale field on the user profile. Lightning Components using lightning:outputField
and lightning:inputField
honor localization. Visualforce pages using the apex:outputField
and apex:inputField
components will also automatically format values. Outputting local sensitive values in any other way will need to be handled manually in your Apex controller code or your JavaScript code.
It’s not always possible to use Lightning or Visualforce tags as described above. For example, if the information you are displaying is not contained within a Custom Object field but in some calculated view state in your Apex...