You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: platform/integrations/figma_plugin/usage.mdx
+37-1Lines changed: 37 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -125,9 +125,45 @@ If you want to update only translations of some keys, first select the keys and
125
125
126
126
## Locating translation on the page
127
127
128
-
If you want to locate a string on the page, click on the **target** button, which will align your figma view so that the node is in the center of your screen.
128
+
If you want to locate a string on the page, click on the **more** button and then on the **Move to string** button, which will align your figma view so that the node is in the center of your screen.
There are a few syntaxes supported to format the text for Figma. Supported are the following HTML tags:
138
+
-`<b>` or `<strong>` – bold
139
+
-`<i>` or `<em>` – italic
140
+
-`<u>` – underline
141
+
-`<br>` – line break
142
+
143
+
If your text contains any of these tags, the plugin will automatically format the text in Figma.
144
+
It will just work in the direction from Tolgee to Figma, so if you change the font weight or decoration for any of the connected texts in figma, this plugin won't recognize these changes.
You can use Tolgee's Plurals and Variables in Figma. To define a variable or mark a string as plural, you need to go to the **String details** page in the plugin by clicking on the **More** button for a text.
In the **String details** page, you can define a variable by using the [ICU syntax](/platform/translation_process/tolgee_universal_icu_placeholders) you know from Tolgee (`{varName}`) and mark a string as plural by checking the **Plural** checkbox.
0 commit comments