mirror of
https://github.com/kataras/iris.git
synced 2026-01-26 05:15:56 +00:00
example: i18n: nested .ini template key-values
This commit is contained in:
@@ -18,4 +18,9 @@ func TestI18nLoaderFuncMap(t *testing.T) {
|
||||
Body().Equal("There are 42 members registered")
|
||||
e.GET("/").WithHeader("Accept-Language", "el").Expect().Status(httptest.StatusOK).
|
||||
Body().Equal("Γειά 2 σκυλί")
|
||||
|
||||
e.GET("/other").Expect().Status(httptest.StatusOK).
|
||||
Body().Equal("AccessLogClear: Clear Access Log\nTitle: Account Connections")
|
||||
e.GET("/other").WithHeader("Accept-Language", "el").Expect().Status(httptest.StatusOK).
|
||||
Body().Equal("AccessLogClear: Καθαρισμός Πρόσβαση στο αρχείο καταγραφής\nTitle: Λογαριασμός Συνδέσεις")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user