Updated libraries and readme

This commit is contained in:
Juan Gilsanz Polo
2024-02-26 15:47:26 +01:00
parent 8785334c25
commit a82dbea166
3 changed files with 67 additions and 34 deletions

View File

@@ -34,8 +34,17 @@ Check the privacy policy [here](https://github.com/JGeek00/linkdy/wiki/Privacy-p
2. Run ``flutter pub get`` to install all the dependencies.
3. Run the application on the desired virtual or physical device.
<b>Note:</b> Linkdy uses Riverpod as the state management system. Files ended on ``.g.dart`` are auto generated by Riverpod's code generator and shouldn't be edited manually.
The code generator can be started by running ``dart run build_runner watch``. Then, the process will start on the terminal.
<p>
<b>State manager</b>
<br>
Linkdy uses Riverpod as the state management system. Files ended on <code>.g.dart</code> are auto generated by Riverpod's code generator and shouldn't be edited manually.
The code generator can be started by running <code>dart run build_runner watch</code>. Then, the process will start on the terminal.
</p>
<p>
<b>Translations</b>
<br>
Linkdy uses <a href="https://pub.dev/packages/slang">slang</a> to manage the translations of the application. To add a new translation, create a new file on <code>lib/i18n</code>, with the structure <code>strings_[lang_code].i18n.json</code>. When adding a new string, make sure to add the translation on all <code>.i18n.json</code> files. Then, run <code>dart run slang</code> to generate the translations.
</p>
<br>
<br>