From 1a87a80864877f8f42b9ce7c41abfbb2e0499260 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Kwiecie=C5=84?= Date: Thu, 12 Mar 2020 11:49:20 +0100 Subject: [PATCH] Update doc about lokalise (#360) * Update doc about lokalise * Fix typo --- Cookbook/Technical-Documents/Lokalise.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/Cookbook/Technical-Documents/Lokalise.md b/Cookbook/Technical-Documents/Lokalise.md index 6ef9f04a6..53a57b515 100644 --- a/Cookbook/Technical-Documents/Lokalise.md +++ b/Cookbook/Technical-Documents/Lokalise.md @@ -8,7 +8,7 @@ Create an account using your `@babylonhealth.com` email address and request acce To update strings in the app the following `Fastlane` lanes can be used: ``` bundle exec fastlane lokalise_pull // download all projects -bundle exec fastlane lokalise_pull_babylon //download the main Babylon +bundle exec fastlane lokalise_pull_babylon // download the main Babylon // these download the other apps projects - they are subsets that populates the files `TargetSpecificLocalizable` bundle exec fastlane lokalise_pull_telus @@ -17,3 +17,23 @@ bundle exec fastlane lokalise_pull_bupa ``` To add/modify keys/values, when you are in a `Project` on the website, you can use `⌘K` or click the blue button `Add key`… + +### Design System translations + +We have [separate Lokalise project](https://app.lokalise.com/project/600119985e68c8ed361798.78610565) for translations used inside the Design System components. While editing keys there, keep in mind that they are shared between the apps and UI SDKs so make sure to consult it with the SDK team if it may effect them. + +To update strings for the `BabylonDesignLibrary` use the lane: +``` +bundle exec fastlane lokalise_pull // download all projects, including Design System +bundle exec fastlane lokalise_pull_design_library // download only Design System project +``` + +### UI SDKs translations + +Similarly to Design System, we have [separate Lokalise project](https://app.lokalise.com/project/559388585e68a93fd45488.75156497) for translations used inside the UI SDKs. Translations in this project should be only modified by the SDK team. + +To update strings for the UI SDKs use the lane: +``` +bundle exec fastlane lokalise_pull // download all projects, including UI SDKs +bundle exec fastlane lokalise_pull_sdks // download only SDK project +```