For the complete documentation index, see llms.txt. This page is also available as Markdown.

Device.locale

函数式 API getLocale也可以通过它使用相同的功能。

功能说明

这是用户的区域设置(locale)信息。如果无法从原生端获取,则默认值 'ko-KR'。可用于应用的本地化·语言设置。

是常量值,可直接读取,无需调用。

类型

Device.locale: string;

参数

响应

是区域设置字符串。例如: 'ko-KR'.

示例代码

import { Device } from "@apps-in-toss/web-framework";

console.log(Device.locale);

这有帮助吗?