A community powered COVID-19 coronavirus tracker for Japan.
For all information regarding the data powering this site, please visit the covid19japan-data repo.
Our data is sourced from a variety of sources, primarily Japanese news outlets like NHK, prefectural governments, and the Ministry of Health, Labour and Welfare.
To embed an abridged version of the app, add the following to your HTML:
If you would like to contribute features, refactor code, etc., please create or comment on an issue on this repo, and one of the core contributors listed below.
Set up the environment:
Build the code continuously & serve it:
npm run start-webpack
You will now be able to access the site at http://localhost:4000/
npm run build
npm run watch
npm run start
When testing your changes locally, be sure to verify both the
/embedpages are working properly.
All strings in the
src/files should be localized like this:
src/i18n/en.jsonfor your string/text
data-i18n="your-new-key"attribute to the HTML element to be localized (replace "your-new-key" in the example)
i18next.t("your-new-key")function to retrieve the localized string (replace "your-new-key" in the example)
To add a new language
src/i18n/en.json), name it to match the new language (e.g.
date-fnslocale to the imports of
src/i18n/index.js, and append that locale to the LOCALES export.
The code for this project is released under the MIT License. You are free to re-use it but we ask that you please include a link back to the COVID-19 Japan website or this GitHub repository. We'd also be happy to include your site in the list of forked projects below – just create an issue to request it.