Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

您好这个包怎么用?里面的方法都没实现是让我们自己实现吗? #1

Open
iFengWang opened this issue Jun 23, 2016 · 1 comment

Comments

@iFengWang
Copy link

您好!
我是一个新手,在引用astaxie/go-i18n这个包时, 发现i18n.go文件里面的方法都是空的,不解?是叫我们自己实现吗?源码中有几处疑惑的地方,望指教!

  1. i18n.go 中的第28行: 使用结构体Dict,可是并没有Dict的定义, 应该把Dict 改成 IL 吧?
  2. i18n.go 中的Translate, Time, Money, loadDefaultTranslations都没有实现业务逻辑,是要自己实现吗?
  3. i18n.go 中的 trfile 应该也是一个结构体吧, 但并没有找到其定义处

另外, 关于astaxie/go-i18n包的使用能在README.md中详细描述吗? 如提供一个代码片段或DEMO示例,多谢!

@astaxie
Copy link
Owner

astaxie commented Jun 24, 2016

我现在推荐你用https://godoc.org/golang.org/x/text 来处理多语言

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants