From ed35a878a57fd7a08075f71bdde0c471cdf7f127 Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Fri, 12 May 2023 20:35:17 +0100 Subject: [PATCH] update readme --- HowToAddNewLanguage.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/HowToAddNewLanguage.md b/HowToAddNewLanguage.md index 18799b2b..26a398bf 100644 --- a/HowToAddNewLanguage.md +++ b/HowToAddNewLanguage.md @@ -8,11 +8,18 @@ Fork Stirling-PDF and make a new branch out of Main Then add reference to the language in the navbar by adding a new language entry to the dropdown -https://github.com/Frooodle/Stirling-PDF/blob/main/src/main/resources/templates/fragments/navbar.html#L80 +https://github.com/Frooodle/Stirling-PDF/blob/main/src/main/resources/templates/fragments/navbar.html#L306 +and add a flag svg file to +https://github.com/Frooodle/Stirling-PDF/tree/main/src/main/resources/static/images/flags +Any SVG flags are fine, i got most of mine from [here](https://flagicons.lipis.dev/) +If your language isnt represented by a flag just find whichever closely matches it, such as for Arabic i chose Saudi Arabia + For example to add Polish you would add ``` -Polish + + icon Polski + ``` The data-language-code is the code used to reference the file in the next step.