- Select any text you want to extract for translations.
- Right click and click on
Extract for translation
or pressctrl+t
. - Enter the
Label
for JSON key and hit enter. - Extraction done.
All common string values like Add
, Remove
, Cancel
have common usage across the pages. We have nameing conventions for these keys.
While working with localisation strings, mostly you need to see what is the actual value for the given JSON key (Label
).
This extension also supports hover
, so if you hover over the Label
it will display the actaul value for 'ae (English)'
and 'es (Spanish)'
Note: currently it only supports
tsx
files.
From workspace root path to /public/locales
.
- /public/locales/ae/common.json
- /public/locales/es/common.json
- Supports extracting single line text.
- Supports extracting multines text.
- Replaces
tabs
, extraspaces
andnewlines
from text strings. - Tootltip when you hover key it show both translation values
- Tootltip when you hover over sizes it shows the conversion from px to rem and rem to px