The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [locale]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
21 views

locale decimal seperator for currency input-fields

We built a form with many lightning-input-fields in which you can enter values for custom currency fields. Company currency settings AND user settings are set to German. So I expect, that users can ...
0
votes
0answers
9 views

Get the Timezone ID based on LanguageLocaleKey

I have list of user locale keys and i need the get the timezone values based on the user locale key please let me know how to do it.
0
votes
0answers
21 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. ...
0
votes
0answers
47 views

Default Locale in SF for sending messages

I have some questions regarding Locales in SF & MC. What is the by-default locale in SF? And what is the API field name for Locale in SF? If the locale is populated in DE with the US & the ...
15
votes
1answer
216 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 ...
1
vote
1answer
25 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 ...
0
votes
1answer
60 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 ...
1
vote
0answers
96 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, ...
0
votes
0answers
135 views

gettting salesforce langLocale as en_US even though locale setting has been set to english(United Kingdom) in salesforce lightning

I want to format date based on user's locale so I am fetching landLocale on Init and using ui:output date to format and display date. But however no matter which locale I am setting , the output is ...
0
votes
0answers
19 views

Developer Console 'Enqueued Time' is not displaying for asynchronous test

I see the 'Enqueued Time' value is not displaying for asynchronous apex tests in the Developer Console. I also saw a few days ago, the date was incorrectly displayed. Date of test was 10th December, ...
4
votes
1answer
80 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,...
3
votes
1answer
548 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 ...
1
vote
1answer
137 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(...
6
votes
3answers
12k 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="...
1
vote
0answers
89 views

How can lightning:inputField support human inputs of “10k” , how to make it support locale and how to make it consistent to other inputs?

I have a the following markup <aura:iteration items="{!v.Items}" var="item"> <lightning:recordEditForm recordId="{!item.Id}" objectApiName="OrderItem"> ...
2
votes
1answer
464 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 ...
1
vote
1answer
356 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 ...
-1
votes
1answer
338 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 ...
0
votes
1answer
191 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. ...
1
vote
1answer
857 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 ...
3
votes
1answer
412 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....
2
votes
3answers
8k 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....
1
vote
1answer
460 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 ...
0
votes
1answer
131 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 ...
1
vote
2answers
361 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 ...
0
votes
1answer
248 views

Create user 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', ...
0
votes
3answers
1k 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 ...
3
votes
0answers
782 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="...
1
vote
2answers
650 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 ...
0
votes
2answers
3k 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 ...
3
votes
2answers
1k 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 ...
1
vote
0answers
145 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. ...
2
votes
1answer
170 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 ...
2
votes
2answers
154 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 ...
3
votes
2answers
281 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, ...
0
votes
0answers
464 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 ...
1
vote
0answers
70 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 ...
1
vote
0answers
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 ...
0
votes
0answers
227 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 ...
1
vote
0answers
27 views

Using native translations in custom pages

Salesforce corporation has done most of the work translating the out-of-the-box app into a few dozen languages. This includes translations of Object, Field and Action names, which are relatively easy ...
3
votes
1answer
4k views

Translation, Localization and Internationalization Best Practices

There are plenty of things to keep in mind when trying to allow translation, localization and internationalization (t8n, l10n, i18n) in any framework. Salesforce has a whole infrastructure built ...
2
votes
2answers
58 views

es_NI locale not supporting for salesforce

When registering community user for NICARAGUA country "es_NI" Locale not supporting, but its supporting "es" locale. Why salesforce not supporting this particular locale and how can i solve this issue....
1
vote
1answer
249 views

My User LanguageLocaleKey gets overridden

I am trying to change my LanguageLocaleKey from "es" to "en_US". I go to Workbench update the record, get the confirmation screen and when I look at the field, it changed back to "es". What could it ...
3
votes
1answer
856 views

Is it possible to make apex:input “locale aware”?

I want to use the fairly new input types that HTML5 defines. In Salesforce, the different types are: date, datetime, datetime-local, month, week, time, email, number, range, search, tel, text, and url....
5
votes
3answers
5k views

How to get correct week number in Apex

I am struggling to get the correct week in year for any given date. Datetime dt = Datetime.newInstanceGmt(2014, 1, 5).addHours(12); Integer week = Integer.valueOf(dt.formatGmt('w')); System.debug('...
4
votes
1answer
712 views

Is there a good way to “untranslate” picklists in Apex?

The project I am working on supports many languages and Case record types. There is also a large amount of dependency between the Case record type and the Case type field (but it isn't one-to-one and ...
8
votes
2answers
3k views

Which decimal symbol is used in the current user's Locale

For complicated reasons I need to find out which symbol (dot or comma) is used for Decimals in the current User's Locale. Is there any way to find that out using Apex or formulas?
13
votes
2answers
13k views

Format decimal in <apex:outputText> respecting the user's Locale

I'd like to format a decimal number in an <apex:outputText> respecting the user's locale: Using {0,number,####.###} should show a German user 10,234 and an American user 10.234 The Java ...
1
vote
1answer
209 views

Determining number separator when inputHidden doesn't format a currency number

If I return an object with a currency field, and I'm returning it from a controller. If I use an <apex:inputField>, the number is correctly formatted as 1,234.56. However, if I use an <apex:...
3
votes
1answer
3k views

How to use locale settings for decimal separator

How can i use Locale setting to know decimal separator? I read on net that - The Salesforce locale settings determine the following display formats: * Date and time * Users’ names * Addresses * ...