Files
react-native-devtools-frontend/docs/localization/check_version.md
T
Christy Chen 3fa95bc487 [Loc] Update localization documentation
Add some FAQs for Loc V2.

Bug: 941561
Change-Id: I23ce46bc01d567f20764c7de8ccd5d7583e017b0
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2238608
Reviewed-by: Vidal Diazleal <vidorteg@microsoft.com>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Christy Chen <chrche@microsoft.com>
2020-06-12 00:16:15 +00:00

472 B

Localization V1 and V2 would both exist in the DevTools during the migration. To check whether the file you are touching is migrated or not:

  1. Is there a const UIStrings = declare at the top of the file after import statements? ✔️: V2
  2. Is there i18n referenced in the file? ✔️: V2
  3. Is there ls`` , Common.UISting(), or UI.formatLocalized() in the file? ✔️: V1

Presubmit step would also inform you if there are V1 APIs used in a migrated file.