docs/core/gi18n-example #137
Replies: 2 comments 1 reply
-
|
gf:v2.8.2, r.GetString undefined (type *ghttp.Request has no field or method GetString) 是不是换其他方法了 |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
在使用Tf方法时,goland编译器会报警告(格式字符串中没有占位符),有什么好的解决办法吗 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
docs/core/gi18n-example
在GoFrame框架中使用i18n国际化功能,包括对象创建、语言设置、常用方法以及与视图引擎的集成。详细描述了通过单例和独立对象管理语言转译的方式,使用SetLanguage和WithLanguage方法进行语言设定,并通过T和Tf方法实现关键字和模板内容的转译。文章还展示了通过上下文设置和视图引擎进行国际化操作的示例。
https://goframe.org/docs/core/gi18n-example
Beta Was this translation helpful? Give feedback.
All reactions