require.Len(t, homeEn.Translations(), 3)
require.Equal(t, "fr", homeEn.Translations()[0].Lang())
require.Equal(t, "nn", homeEn.Translations()[1].Lang())
- require.Equal(t, "Nynorsk", homeEn.Translations()[1].Title)
+ require.Equal(t, "På nynorsk", homeEn.Translations()[1].Title)
require.Equal(t, "nb", homeEn.Translations()[2].Lang())
- require.Equal(t, "Bokmål", homeEn.Translations()[2].Title)
+ require.Equal(t, "På bokmål", homeEn.Translations()[2].Title, configSuffix)
+ require.Equal(t, "Bokmål", homeEn.Translations()[2].Language().LanguageName, configSuffix)
sectFr := frSite.getNode("sect-sect-0")
require.NotNil(t, sectFr)
[Languages]
[Languages.en]
weight = 10
-title = "English"
+title = "In English"
+languageName = "English"
[Languages.en.blackfriday]
angledQuotes = false
[[Languages.en.menu.main]]
[Languages.fr]
weight = 20
-title = "Français"
+title = "Le Français"
+languageName = "Français"
[Languages.fr.Taxonomies]
plaque = "plaques"
[Languages.nn]
weight = 30
-title = "Nynorsk"
+title = "På nynorsk"
+languageName = "Nynorsk"
[Languages.nn.Taxonomies]
lag = "lag"
[[Languages.nn.menu.main]]
[Languages.nb]
weight = 40
-title = "Bokmål"
+title = "På bokmål"
+languageName = "Bokmål"
[Languages.nb.Taxonomies]
lag = "lag"
`
Languages:
en:
weight: 10
- title: "English"
+ title: "In English"
+ languageName: "English"
blackfriday:
angledQuotes: false
menu:
weight: 0
fr:
weight: 20
- title: "Français"
+ title: "Le Français"
+ languageName: "Français"
Taxonomies:
plaque: "plaques"
nn:
weight: 30
- title: "Nynorsk"
+ title: "På nynorsk"
+ languageName: "Nynorsk"
Taxonomies:
lag: "lag"
menu:
weight: 1
nb:
weight: 40
- title: "Bokmål"
+ title: "På bokmål"
+ languageName: "Bokmål"
Taxonomies:
lag: "lag"
"Languages": {
"en": {
"weight": 10,
- "title": "English",
+ "title": "In English",
+ "languageName": "English",
"blackfriday": {
"angledQuotes": false
},
},
"fr": {
"weight": 20,
- "title": "Français",
+ "title": "Le Français",
+ "languageName": "Français",
"Taxonomies": {
"plaque": "plaques"
}
},
"nn": {
"weight": 30,
- "title": "Nynorsk",
+ "title": "På nynorsk",
+ "languageName": "Nynorsk",
"Taxonomies": {
"lag": "lag"
},
},
"nb": {
"weight": 40,
- "title": "Bokmål",
+ "title": "På bokmål",
+ "languageName": "Bokmål",
"Taxonomies": {
"lag": "lag"
}