osrm-frontend icon indicating copy to clipboard operation
osrm-frontend copied to clipboard

i18n: maintainability and reloads

Open DennisOSRM opened this issue 11 years ago • 3 comments

The language dependent changes should be kept in separate files. This allows for much better maintainability and separated i18n from the rest of the code.

Also, changing the language requires a reload right now.

DennisOSRM avatar Nov 24 '14 08:11 DennisOSRM

The language dependent changes should be kept in separate files. This allows for much better maintainability and separated i18n from the rest of the code.

They are, see the i18n directory.

Also, changing the language requires a reload right now.

Common practice for i18n, as reloading all strings at runtime is unneeded complexity.

TheMarex avatar Nov 25 '14 09:11 TheMarex

Reloads are bad UI.

DennisOSRM avatar Nov 25 '14 10:11 DennisOSRM

you can fetch data asyncronously and update parts of the ui. a framework like backbone can make such things easier :-)

emiltin avatar Nov 25 '14 12:11 emiltin