Using locale settings to detect wheter to use imperial units

前端 未结 6 571
被撕碎了的回忆
被撕碎了的回忆 2021-01-31 09:00

I\'m working on an app that wants to display lengths either in centimeters (cm) or in inches(\"). Is there a way to select the right unit from the locale? In any event I\'m also

6条回答
  •  清歌不尽
    2021-01-31 09:41

    Just give the user the option to choose a preferred unit in a settings menu. If it is a traveling user you don't want the app to be geographically aware, IMO.

提交回复
热议问题