From 832ad6815b28f78894e86ed4a5ea6ffa1b643649 Mon Sep 17 00:00:00 2001 From: Petro Silenius Date: Tue, 5 Apr 2022 18:30:58 +0300 Subject: [PATCH] Update documentation on adding new locale, move reaction section under correct header --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 80d92af..82bea3d 100644 --- a/README.md +++ b/README.md @@ -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 💻 @@ -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