Skip to content

Commit

Permalink
Update documentation on adding new locale, move reaction section unde…
Browse files Browse the repository at this point in the history
…r correct header
  • Loading branch information
PetroSilenius committed Apr 5, 2022
1 parent e558dce commit 832ad68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Add a new locale to [next.config.js](next.config.js). The locale format [ISO 639

Add a `json` file with the name of the locale to [lang](lang). Copy the `json` content from [en.json](lang/en.json) and translate the text content for the new language.

The reaction counts are stored in Firebase [Firestore Database](https://cloud.google.com/firestore). The reactions are prefetched on server and refetched in the browser once a change to the database occurs.
Add a translation for the new language to existing languages by using the locale format as the json key.

## Tech Stack 💻

Expand All @@ -44,6 +44,8 @@ The user interface of the application is styled using [tailwindcss](https://tail

The data is stored in json files under [data](data) and [lang](lang). This allows saving the data in a transparent way compared to a CMS or database. It also allows collaboration on those data sources without much prerequisites.

The reaction counts are stored in Firebase [Firestore Database](https://cloud.google.com/firestore). The reactions are prefetched on server and refetched in the browser once a change to the database occurs.

## How to run

### Installation
Expand Down

0 comments on commit 832ad68

Please sign in to comment.