apple

package
v0.21.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package apple 苹果部分系统下的专有接口

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppLocale

func AppLocale(app string) string

AppLocale 返回 app 的界面语言

app 表示该应用的 ID;

NOTE: macOS 系统中可以在设置中修改每个应用的语言,该接口可以获取此值。

func SetAppLocale

func SetAppLocale(app string, lang ...string) error

SetAppLocale 设置 app 的界面语言

app 表示应用有的唯一 ID; lang 为语言的 ID,如果是多个值,那么是第一个真实存在的 ID 作为其实际语言;

NOTE: macOS 系统中可以在设置中修改每个应用的语言,该接口可以设置此值。

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL