whoogle-search/app/static
Ben Busby 4649d96dda
Support basic localization (#325)
* Replace hardcoded strings using translation json file

This introduces a new "translations.json" file under app/static/settings
that is loaded on app init and uses the user config value for interface
language to determine the appropriate strings to use in Whoogle-specific
elements of the UI (primarily only on the home page).

* Verify interface lang can be used for localization

Check the configured interface language against the available
localization dict before attempting to use, otherwise fall back to
english.

Also expanded language names in the languages json file.

* Add test for validating translation language keys

Also adds Spanish translation to json (the only non-English language I
can add and reasonably validate on my own).

* Validate all translations against original keyset, update readme

Readme has been updated to include basic contributing guidelines for
both code and translations.
2021-05-24 17:03:02 -04:00
..
css Add divider to user-defined CSS (#310) 2021-05-11 12:26:37 -04:00
img Configure PWA for mobile browsers (#234) 2021-04-05 11:00:56 -04:00
js Focus search input after clearing w/ reset btn 2021-04-22 10:02:15 -04:00
settings Support basic localization (#325) 2021-05-24 17:03:02 -04:00