You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no difference between v1 and v2 of the API, but the implementation of the translation resource files in language.go is different. The v1 is implemented by the third-party extension library packr, and the v2 is implemented by the standard library embed after golang1.16. If your golang version is 1.16+, the v2 is recommended, otherwise, the v1 is required.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
There is no difference between v1 and v2 of the API, but the implementation of the translation resource files in
language.go
is different. The v1 is implemented by the third-party extension library packr, and the v2 is implemented by the standard library embed aftergolang1.16
. If your golang version is1.16+
, the v2 is recommended, otherwise, the v1 is required.Beta Was this translation helpful? Give feedback.
All reactions