use messages in template & add automatic page titling from route name

This commit is contained in:
axolotle
2021-03-10 15:26:44 +01:00
parent fb0c99e444
commit 965112ddbb
5 changed files with 13 additions and 26 deletions
-1
View File
@@ -2,7 +2,6 @@ import messages from './fr.json'
function getMessage (keyedPath, alt) {
console.log(keyedPath, alt)
let message
try {
message = keyedPath.split('.').reduce((parent, key) => {