From b0c5e79443811249f75273eb56811b1e382ab830 Mon Sep 17 00:00:00 2001 From: MrDave1999 Date: Mon, 1 Jul 2024 16:09:42 -0500 Subject: [PATCH] Update README.md --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6a6a26d8..bf5cb1e1 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ DentallApp is a web application with chatbot for appointment management, reminde - [Plugin configuration](#plugin-configuration) - [Credentials](#credentials) - [Validate identity documents](#validate-identity-documents) +- [Configure languages](#configure-languages) - [Diagrams](#diagrams) - [General architecture](#general-architecture) - [Core layer](#core-layer) @@ -178,7 +179,7 @@ By default only two plugins are loaded: - `Plugin.ChatBot.dll` - `Plugin.AppointmentReminders.dll` -You can add other plugins by modifying the [PLUGINS](https://github.com/DentallApp/back-end/blob/d2dfdbd2a75b14be0ff87f531abc367040d87691/.env.example#L10-L13) key from the .env file: +You can add other plugins by modifying the [PLUGINS](https://github.com/DentallApp/back-end/blob/52a0f58f8a721d731b0c21da75bb648eedb40d33/.env.example#L9-L12) key from the .env file: ```.env PLUGINS=" Plugin.ChatBot.dll @@ -229,6 +230,17 @@ In case there is no plugin loaded to validate the identity document, the host ap It was decided to implement the logic to validate identity documents from a plugin, because it is flexible, since it allows to change the implementation without having to modify the source code of the host application. +## Configure languages + +This project uses [resource files](https://github.com/DentallApp/back-end/tree/dev/src/Shared/Resources) to store response messages in different languages. If you want to add a new language, you must modify the [Languages section](https://github.com/DentallApp/back-end/blob/52a0f58f8a721d731b0c21da75bb648eedb40d33/src/HostApplication/appsettings.json#L7-L10) of `appsettings.json`. +```json +"Languages": [ + "es", + "en", + "fr" +] +``` + ## Diagrams ### General architecture