1
0
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:
Gerasimos (Makis) Maropoulos
2020-09-14 22:00:20 +03:00
parent 44d5ebdc9c
commit 0f7cf7f35c
5 changed files with 43 additions and 3 deletions

View File

@@ -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: Λογαριασμός Συνδέσεις")
}