i18ngenerator

command
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

i18ngenerator 是国际化的代码生成器,通过项目根目录下 i18n 文件夹中 message_xx.properties 文件生成可供 sdk 国际化模块使用的 go 代码 通过 go install github.com/ci-plugins/golang-plugin-sdk/cmd/i18ngenerator@latest 命令安装 在使用国际化中的文件输入 //go:generate i18ngenerator [i8n 文件地址] [生成的 go 文件路径] 同时在项目根目录下 go generate . 即可生成具体的国际化代码 同时使用 sdk 中的 InitI18n 即可完成国际化功能初始化

Jump to

Keyboard shortcuts

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