diff --git a/Documentation/CONTRIBUTING.md b/Documentation/CONTRIBUTING.md index ce1a877c9..51d717b42 100644 --- a/Documentation/CONTRIBUTING.md +++ b/Documentation/CONTRIBUTING.md @@ -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.