-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix #21 fix #27 Co-authored-by: Bo-Yi Wu <[email protected]>
- Loading branch information
1 parent
4be4d75
commit b8f7fd2
Showing
5 changed files
with
45 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
package i18n | ||
|
||
import ( | ||
"context" | ||
"github.com/gin-gonic/gin" | ||
) | ||
|
||
// GinI18n ... | ||
type GinI18n interface { | ||
getMessage(param interface{}) (string, error) | ||
mustGetMessage(param interface{}) string | ||
setCurrentContext(ctx context.Context) | ||
getMessage(context *gin.Context, param interface{}) (string, error) | ||
mustGetMessage(context *gin.Context, param interface{}) string | ||
setBundle(cfg *BundleCfg) | ||
setGetLngHandler(handler GetLngHandler) | ||
} |