On Fri, Feb 16, 2018 at 7:46 AM,  <prabhakaran.anish1...@gmail.com> wrote:
>
> The intention is basically to send out translations from the deployed shard.
> Hence,we are trying to find the locale of the server locale. Because of some
> reason, we cannot extract this as an environment variable on the shard or
> get it from the client.

What operating system?

What format do you want for the locale?

Ian


> On Wednesday, 14 February 2018 20:21:05 UTC+5:30, Ian Lance Taylor wrote:
>>
>> On Tue, Feb 13, 2018 at 11:19 PM,  <prabhakara...@gmail.com> wrote:
>> >
>> >   I'm a newbee to Golang and am trying to fetch the default server
>> > locale.
>> > Can you help me how I can fetch the default server locale in golang?
>> >
>> > In other words, I'm looking for the Java equivalent code in golang i.e
>> > 'Locale.getDefault()'
>>
>> Go doesn't use locales in the same way that Java does.  If you tell us
>> what you want to do with that information, we may be able to help.
>> You may want to look at https://godoc.org/golang.org/x/text .
>>
>> Ian
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to