Using a dictionary library for i18n, also shows how to use i18n with navigation plugin.

This commit is contained in:
Zach Leatherman
2022-07-27 17:00:44 -05:00
parent a4dade2537
commit bd40861468
8 changed files with 52 additions and 12 deletions

22
i18n.js Normal file
View File

@@ -0,0 +1,22 @@
module.exports = {
en: {
also: "This page is also available in:",
previous: "Previous",
next: "Next",
nav: {
home: "Home",
archive: "Archive",
about: "About Me",
}
},
es: {
also: "Esta página también está disponible en:",
previous: "Anterior",
next: "Siguiente",
nav: {
home: "Página de inicio",
archive: "Archivo",
about: "Acerca de mí",
}
}
};