An open API service indexing awesome lists of open source software.

https://github.com/issue9/localeutil

本地化的一些工具
https://github.com/issue9/localeutil

go golang i18n locale

Last synced: 4 months ago
JSON representation

本地化的一些工具

Awesome Lists containing this project

README

          

localeutil
[![Go](https://github.com/issue9/localeutil/workflows/Go/badge.svg)](https://github.com/issue9/localeutil/actions?query=workflow%3AGo)
[![license](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat)](https://opensource.org/licenses/MIT)
[![codecov](https://codecov.io/gh/issue9/localeutil/branch/master/graph/badge.svg)](https://codecov.io/gh/issue9/localeutil)
[![PkgGoDev](https://pkg.go.dev/badge/github.com/issue9/localeutil)](https://pkg.go.dev/github.com/issue9/localeutil)
![Go version](https://img.shields.io/github/go-mod/go-version/issue9/localeutil)
======

提供了一些常用的本地化相关功能,依赖于

- DetectUserLanguage 检测当前用户的本地化信息
- Width 计算字符的宽度
- message 本地化消息
- message/serialize 本地化消息的序列化
- message/extract 本地化消息的提取

安装
----

```shell
go get github.com/issue9/localeutil
```

版权
----

本项目采用 [MIT](http://opensource.org/licenses/MIT) 开源授权许可证,完整的授权说明可在 [LICENSE](LICENSE) 文件中找到。