Boorusphere was supposed to be a simple booru viewer, but due to lack of interest, especially in flutter, it was shut down on July 19, 2024. It remains here for history's sake, although it serves no inherent purpose.
Install Flutter SDK, visit flutter.dev for more information.
Fetch latest source code
git clone https://github.com/nullxception/boorusphere.git
cd boorusphere
flutter pub get
dart run build_runner build --delete-conflicting-outputs
dart run slang
flutter run
dart run slang analyze --outdir=i18n
Open i18n/_missing_translations.json and then translate your language of choice.
After editing the file, you can apply it to the actual json translation file by running:
dart run slang apply --outdir=i18n
dart run slang analyze --outdir=i18n # update analyzation result files
You can leave untranslated strings on i18n/_missing_translations.json.
It's perfectly fine and recommended to leave it unchanged rather than adding it on the actual translation json but leaving it untranslated.
You can copy i18n/strings_en.i18n.json to i18n/strings_<language-code>.i18n.json
.
At this point, feel free to pull request your new language here and we'll take care of adapting to the app code.
Or if you want to build and test yourself, then:
dart run slang
dart run slang analyze --outdir=i18n