locale.cj:基于 CJ 生态的本地化语言检测项目

[Cangjie] get system default locales. [仓颉] 获取系统默认语言。

Branch1Tags0

locale.cj

inspired by go-locale, go-locale 介绍

依赖导入

# cjpm.toml

[dependencies]
  locale = { git = "https://gitcode.com/youthlin/locale.cj.git", brach = "main" }

使用

import locale

let lang = locale.detect()
let langs = locale.detectAll()

Todo

Introduction

[Cangjie] get system default locales. [仓颉] 获取系统默认语言。

Customize your domain