7
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ロケールの取得

7
Last updated at Posted at 2014-05-19

掘り出されたので追記: os-locale使え。以上。


Node.jsでロケールの取得、process.env.LANGで出来る…(http://qiita.com/takoba/items/da13c8946853c0a55e8c)

と思うじゃん?

Unix系OSならこれでいいんだけどどうもWindowsの環境変数にLANGやその代用になる物は存在しない。

navigator使えるんじゃ?とか思うかもしれないけどあれは上に乗っかってるChromium部とかでつけてたりするっぽくて仮にAtomで取ってみてもen_USになってシステムロケールは取得出来ないんだ…。

誰かいい方法知ってる人いたら教えて下さい!

☆(ゝω・)vキャピ

7
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?