Questions tagged [locale]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
49 views

Is it compulsory to enable Enable ICU formats for en_CA locale

I have completed steps for Enable ICU Formats but now salesforce is saying in new release update that In my org we are not using en_CA locale - still we need to enable the option. I am really ...
Newbie in salesforce's user avatar
0 votes
1 answer
43 views

Change curreny position on dashboard Metric Chart

On Dashboards, on Metric Chart, instead of correct settings of Locales for my country, currency symbol is always shown before value. It is incorrect for my country (Poland) as it should always be ...
Łukasz Franczyk's user avatar
0 votes
0 answers
36 views

Update format of a phone number from within journey

I have a journey that I would like to send SMS messages from and I have already set up Locale and the correct format numbers on a different data extension to test and everything is working as expected....
Kirky's user avatar
  • 1
0 votes
1 answer
2k views

Getting user locale information in LWC

In Aura, we can get the user locale info by using $A.get("$Locale.langLocale"). What is the equivalent in LWC ? Searched in developer doc and in google, not able to find it. How to get the ...
Sfdc_Spider's user avatar
0 votes
0 answers
60 views

Order Confirmation email must populate Country Currency locale via ampscript but does not work (formatcurrency)

When an order occurs on the website, Marketing cloud holds the country locale of en_US and en_CA in a Data Extension field titled "locale" The following ampscript is not pulling in the ...
API's user avatar
  • 1
1 vote
0 answers
155 views

Change the locale of Quote PDF

We have a problem in my org related to the locale and the creation of the Quote PDF. We have 2 offices ("Europe" and "America") for the Quote object, specified in the Office (...
Enrique Muñoz's user avatar
6 votes
1 answer
1k views

How and when should I test and adapt my Apex code to support ICU?

Salesforce adopted a new set of locale formats in Winter ’20 called ICU. When and how should I adapt my Apex code to support it?
Alba Rivas's user avatar
  • 2,521
0 votes
1 answer
387 views

hour() and date() functions are returning wrong values

I am trying to get the hour and date of the user's local timezone by using the below code. now = Datetime.now(); offset = UserInfo.getTimezone().getOffset(now); local = now.addSeconds(offset/1000); ...
Akshay Vasu's user avatar
-1 votes
1 answer
178 views

Illegal assignment from List<User> to List<User>

I am trying to get the locales in use in my org and a user count for each locale to prepare for the spring update 22. However I am unable to run this SOQL to get this list. I have looked for other ...
chillinOutMaxin's user avatar
2 votes
0 answers
56 views

Aura component and LWC are not supporting Nepal locale

I have a requirement where I need to show date in Nepal locale in both Lightning Web and Aura components. This shows the date in, for example - २०२१/२/१७ format in Salesforce but on LWC and Aura, it ...
Bhavya's user avatar
  • 41
3 votes
1 answer
630 views

LWC locale does not match Apex version

When I utilize the following in my LWC component: import USER_LOCALE from '@salesforce/i18n/locale'; I get this back: en-US However, when I run the following in Apex: UserInfo.getLanguage() I get ...
Michael Sobczak's user avatar
0 votes
1 answer
218 views

Sorting results different for products in Salesforce

We are facing a weird issue in the results that are sorted by name for products. Scenario 1: User 1 opens the VF page which shows a list of products-sorted by name. They appear in the order with ...
surabhi panwar's user avatar
1 vote
1 answer
830 views

Format decimal according to locale, but with fixed number of decimal places

There were many question around the topic of formatting decimals according to user's locale and rounding decimals, but I haven't seen the one that actually fits my case, so here I go. I am creating ...
Wookie88's user avatar
  • 713
0 votes
2 answers
498 views

Locale Support for Canadian Short Codes

According to the following Marketing Cloud Valid Locales Documentation, there seems to be no support for the english Canadian locale, only for the french Canadian. Unsupported Locale: English (...
thechrishaddad's user avatar
0 votes
2 answers
2k views

How to find first day of the week by locale?

I have a LWC that displays a calendar, which calls to APEX and the class returns all the data needed to fill the calendar. By default, the data is returned where Sunday is the first day of the week. ...
PatMcClellan__c's user avatar
1 vote
0 answers
806 views

Formatting currencies in different locales (DE, EN, ES, FR & PT) in quote

My company is dealing with customers all around the world. We use 5 languages (English being the main): DE, EN, ES, FR & PT. We wanted to send the quotes with localized amounts to our customers ...
A. Akkari's user avatar
2 votes
0 answers
117 views

Current user's locale in ProcessBuilder

I am trying to access the Locale field of the running user in Process Builder. The field is not available from the field list. I have also tried to access the field in the following ways: $User....
DebaSen's user avatar
  • 69
0 votes
0 answers
260 views

Get LanguageLocaleKey based on timezone ID

I have a custom object called Machine__c and i have a custom picklist field in it called Time_Zone__c. This Time_Zone__c field has the same picklist values as the Standard User object timezone field. ...
Sisir's user avatar
  • 101
15 votes
1 answer
609 views

Is Salesforce SOQL GROUP BY case sensitive for different locales?

Lets say I have records with values like 'TEST DATA' and 'test data' in some field. When I run SOQL (in Developer Console or from Apex) by user with EN locale, it arranges records with 'TEST DATA' and ...
Oleksii Bezuhlyi's user avatar
1 vote
1 answer
215 views

Translations for multiple locales/dialects

We're developing a managed package that uses the translation workbench to provide translations. We'd like to support multiple English translations so that users with a different locale from En-US can ...
Eric's user avatar
  • 11
0 votes
1 answer
363 views

How to override user's locale for toStartOfWeek() method, so that system should always return Sunday date as week start date?

Date currentDate = System.today(); System.debug('Start of week = '+currentDate.toStartOfWeek()); For English (United States) locale System.debug will display Sunday date as Start of week. And for ...
Jagadeesh's user avatar
1 vote
0 answers
412 views

Site with Lightning Component breaks User Locale

I am trying to include a Lightning Component in a Visualforce Page that is accessed via Sites. When previewing to page in the sandbox, it works just as expected, but when accessed through the Site, ...
StrayCheese's user avatar
4 votes
1 answer
578 views

Round Decimal and .format() it into a localized output String with more than 3 decimal places

Until today I was very happy with this utility method public static string roundNumber(decimal d, integer precision) { if(d == null) return ''; string separator = (1.01).format().substring(1,...
Uwe Heim's user avatar
  • 28.3k
5 votes
2 answers
3k views

Getting the currency symbol in lightning JS

I am using multiple currencies in my project and I have the currency ISO code. But the problem is, I want to get the symbol for currencies other than user locale. Is there any solution available for ...
Tarique Shamim's user avatar
1 vote
1 answer
421 views

The $Locale global value provider returns wrong datetimeFormat value

I noticed that lightning have some problem with datetime format. Seems like issue with $Locale.dateTimeFormat that returns wrong value. I set-up my Salesforce org User locale settings to English(...
Grzegorz Połuch's user avatar
9 votes
5 answers
39k views

Lightning:input type="date": how to change the date fomat - Summer'18

I'm trying to change date format of this component but I dont find any attribute (like ui:inputDate has) to change the date format. <lightning:input type="date" name="input8" label="Dates" value="...
danigonlinea's user avatar
2 votes
1 answer
2k views

Formula fields to display Current time based on Company Information

Formula field to display current time based on the Company's default time zone, does anybody have the idea how to achieve this For User's timeZone current time used the NOW() - but don't know how to ...
SFDC's user avatar
  • 461
1 vote
1 answer
2k views

How to get current user date/time format in apex, e.g. MM/dd/YYYY hh:mm:ss a z

We need to figure out current user date/time format in apex code to send it to our mobile app in order to display data in same way as it is in Salesforce itself. In other words, it's about getting ...
wesaw's user avatar
  • 2,990
-1 votes
1 answer
589 views

Dateformat based on user locale [closed]

I am using aljs library to show datepicker.I need to format the selected date as per the date format of current user locale using moment.js moment(selectedDate).format(dateFormat) But I need all the ...
user34950's user avatar
0 votes
1 answer
639 views

How to replicate NumberFormat based on locale in salesforce

I want to show currency on VF page in different formats based on locale used on the template. NumberFormat class is available in Java to achieve this but in apex is there any way to achieve this. ...
Keepcalmncode's user avatar
2 votes
1 answer
2k views

Locale language in lightning community

In a lightning component, I am currently using $Locale.language to get the users language locale, however, I am also considering to use navigator.language The NavigatorLanguage.language read-only ...
glls's user avatar
  • 20k
4 votes
1 answer
1k views

How to change the UserInfo.getDefaultCurrency value in a test?

I am trying to test some code that uses UserInfo.getDefaultCurrency() but can't figure out how to control that value in a test. For example this doesn't work: User u = new User(Id = UserInfo....
Keith C's user avatar
  • 135k
2 votes
3 answers
24k views

Relative Date Value (THIS WEEK,NEXT WEEK,LAST WEEK)

I have below filter in List view for my custom object and client's locale is US English. Scheduled Date equals THIS WEEK List view retrieves all records with scheduled date from Sunday to Saturday....
sfdc's user avatar
  • 13.6k
1 vote
1 answer
2k views

Where i need to change the format of date and currency for german locale

I have created one quote (standard object) and that quote has product unitPrice and created date I am playing with that quote with two different users 1. BOB and 2. Alice (both have same role and ...
WantToBeACoder's user avatar
0 votes
1 answer
299 views

Visualforce page language based on the OS language

Is there a way to use the Custom Lable translations on the Visualforce page for the public sites? I have one user - Site User, which has set the language to English, but in reality, the user visiting ...
mascot's user avatar
  • 553
1 vote
2 answers
724 views

Special characters in static resource

The nordic characters æøå are displayed as question marks in JS static resource after reopening the file in the Developer Console. An alert box with these characters will also display as question ...
Carl Otto Gjelsvik's user avatar
1 vote
1 answer
1k views

How can I create a user record with specific language and country?

I need create user via apex with specific lang and country. For example with lang French and country Switzerland. I am trying create user with fields: LanguageLocaleKey='fr_CH', LocaleSidKey='fr_CH', ...
JKasyan's user avatar
  • 195
0 votes
3 answers
3k views

Convert String DateTime to User local DateTime

I need to convert the string datetime into user locale date time format. for Ex: //Consider this is Indian Time 22nd Dec 5 PM String dateTime = '12-22-2016 17:00:00'; I want to convert this as per ...
Prince's user avatar
  • 159
4 votes
0 answers
1k views

Set language / locale globally for a Lightning Application

Our customers send Quotes to various locales/languages, and need to see the quote in the recipient's locale. In Visualforce I can set a locale/language specifically by using <apex:page language="...
Christian Szandor Knapp's user avatar
1 vote
2 answers
1k views

Lightning component get user's language rather than user's locale

I have a few labels I use on my Lightning Components. They are all based on the user's locale but nothing changes when user's language changes. How can I change this ? My users never change locale ...
Simonp's user avatar
  • 1,892
0 votes
2 answers
7k views

Convert String DateTime to User Locale Date Time

My string format : 10/11/2016 01:00 AM I want to convert this String to DateTime to support in every user's locale format I tried Date.parse, Date.valueOf but am not getting expected value. Any ...
Prince's user avatar
  • 159
3 votes
2 answers
2k views

Why is "starts with vowel sound" checkbox not available?

I'm creating custom objects in a developer org. I see in the docs that there is a checkbox for "starts with vowel sound". However I don't see it in my org. Instead, I have a combo box asking for the ...
Pedro Otero's user avatar
1 vote
0 answers
174 views

Date Field, User Locale and Visual Force Problem [closed]

I have a scenario, where i am implementing a VF page which is basically a Registration Page with DOB validating if the user is above 18. It also has style class and javascript attached to validation. ...
Suresh Kumar's user avatar
2 votes
1 answer
193 views

Datepicker Issue in Visual workflow

I have my user "locale" set as Korean. There is simple visual workflow with a 'date' type field. And when choosing the date in the flow, it gives the error Invalid Date Though the dates are ...
sfdcFanBoy's user avatar
  • 4,045
2 votes
2 answers
442 views

Javascript datetime saved in SF field incorrectly

I have a html form where one of the input is date time. <input type="datetime-local"/> I am reading the form inputs using jQuery and sending them to the controller using actionFunction and ...
codeinprogress's user avatar
3 votes
2 answers
640 views

Include Time Zone in standard UI date format

Does anyone know a way to include the time zone abbreviation on dates/times displayed on standard Salesforce forms? We have users who travel across the country, and we have a default time zone set, ...
James Boutcher's user avatar
0 votes
0 answers
524 views

Where Clause in Query to match Phonenumber

How can I match for phonenumber in my whereclause? My query: SELECT id, Membership_number__c, Phone, Email FROM Contact WHERE Phone = :phoneNumberString Above mathces fine on these phonenumber ...
Claus Machholdt's user avatar
1 vote
0 answers
177 views

Locale English(Ireland,Euro) not available in Locale dropdown

I have my Developer Org where "English(Ireland,Euro)" is avaialble in Locale dropdown in Language and Timezone. But, in my Customer Org that Locale is not avaibale in Locale dropdown. May I know the ...
rakesh's user avatar
  • 57
1 vote
0 answers
1k views

Date and Number locale problem on html5 input type=date/number

Question Is there any chance to send data in generic date format (yyyy-mm-dd) in standard save method? I need to user apex:input type="date" (or number). But Salesforce save method is not ...
Martin Borthiry's user avatar
0 votes
0 answers
612 views

Determine country of Sites Guest User (Anonymous user)

We have a site built on Communities and Force.com sites. What's the best way of determining which country a guest / anonymous user came from on a Force.com sites page? For registered users, we can ...
James Loghry's user avatar
  • 6,221