2
2
mirror of https://github.com/mastodon/mastodon-ios synced 2025-04-11 22:58:02 +02:00

Update CONTRIBUTING.md

format fix
This commit is contained in:
whattherestimefor 2025-02-12 08:37:49 -05:00 committed by GitHub
parent d3a134b060
commit 4834b11e79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,11 +13,13 @@ File an issue about the bug or feature request. Make sure you are installing the
The translation will update regularly. Please request the language if it is not listed via an issue.
To add new localized strings:
Basic:
- Edit `Localization/app.json` to add new strings in an appropriate section of the JSON.
- Edit `MastodonSDK/Sources/MastodonLocalizations/Resources/Base.lproj/Localizable.strings` to add the same strings as in `app.json`. Take care to follow to formatting pattern of existing examples.
- Run `swiftgen` inside the project directory to generate the typed string resources.
- Use the new typed strings by importing `MastodonLocalization` and using the `L10n` struct.
Plurals:
- Add appropriate entry to `MastodonSDK/Sources/MastodonLocalizations/Resources/Base.lproj/Localizable.stringsdict` (feel free to copy a similar example and then edit it).
- Run `swiftgen` inside the project directory to generate the typed string resources.