Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [locale]

The tag has no usage guidance.

0
votes
0answers
7 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
39 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
87 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
60 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(...
4
votes
2answers
4k 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
83 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
147 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
162 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
91 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
103 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
494 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
161 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....
1
vote
3answers
4k 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....
0
votes
1answer
312 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
79 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
1answer
237 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
121 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
2answers
918 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 ...
4
votes
0answers
563 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
463 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
2k 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
1answer
672 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
110 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. ...
3
votes
1answer
146 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
136 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
216 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
438 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
61 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
205 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
26 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
56 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
241 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
785 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
4k 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
674 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
12k 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
204 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 * ...
3
votes
1answer
536 views

change Locale in Visualforce

Here we are discussing about localization in Visualforce, we know best practices that involve HOW to implement localization, Custom Labels and such. We are looking for a smart way to implement the ...
3
votes
1answer
2k views

Localization in Salesforce

Here we are discussing about localization in Visualforce, and we know these two solutions: 1) use cookies 2) use a parameter on the URL that specifies the language selected by the user Is there any ...
5
votes
1answer
156 views

Force.com IDE adds localized fields on sync?

I have a project that I keep in Git and use ant most of the time to deploy it to dev orgs and the production org where we create the package. When I sync the project with the development environment ...
13
votes
1answer
4k views

How to access the Organization “Currency Locale” ISO Locale code (NOT Currency code) in Apex/SOQL

First of all, before telling me that this is a duplicate of the previously-asked question "Display currency symbol", READ THE WHOLE QUESTION. Summary: I am trying to replicate the functionality of ...
10
votes
2answers
5k views

Default currency symbol

I'm looking for a way to get the Default currency symbol (in a none-multi-currency org) of the salesforce org locale (to have it displayed on a visualforce page in a field that can't be <apex:...