20200513-14 Julie Kwok
To see result
npm installnpm startThere has been an attempt to push the
Page behaviour
Discoveries
Chinese quotes don’t need to be escaped in json, but numbers do have to be quoted.
Closing a tab or a page won’t trigger unmount hook. Things are interrupted so no way of doing anything. To save the “last” language preference, I actually had to save it every time it changes.
So…if there is no exact in Route of /, you might have the content of / before the content of any page.
Difficulties
in current setup, when changing language, url ooesn’t change, messsage
Didn’t manage the url separation for languages.
key={currentLanguage} to fill contentwindow.location.href BUT English is tricky coz it doesn’t have a language basename.:pageSlug but home page doesn’t have a slug (moreoever when it’s in other languages the slug isn’t what we really want)Bug report