Figma plug-in

With the Crowdin for Figma plugin, you can use texts from Crowdin Enterprise in your designs to save time for both designers and developers. Disse kan omfatte originale eller oversatte tekster. Om nødvendigt kan der tilføjes nye (f.eks. dialogtitler, knapetiketter), som kan sendes til oversættere i Enterprise.

Note: The Pages tab and some other plugin settings may be unavailable when working with string-based projects.

Brugsstudier

  • Generér hurtigt flersprogede, kreative aktiver.
  • Oversæt modelscenarier og test dem på forskellige sprog, før programmering påbegyndes.
  • Stop med at bruge ‘Lorem Ipsum’, tilføj i stedet rigtige tekster fra Enterprise til prototyperne. Strings added from Crowdin Enterprise become linked to the text fields in Figma.
  • Opret og upload kildestrenge fra egne designs til Crowdin-projektet. Created strings become linked to text fields in Figma. This way, developers could use uploaded strings, reducing time spent on development.
  • Preview translations and string keys in your designs.
  • Upload taggede skærmfotos til Enterprise-projektet.

Running Crowdin for Figma Plugin for the First Time

  1. Log ind på Figma.
  2. Open one of your design files or click New design file.
  3. In the file menu, click Plugins > Manage plugins…. Alternatively, right-click the canvas and click Plugins > Manage plugins.
  4. Use the Search all plugins field to find Crowdin for Figma plugin.
  5. Click on Crowdin for Figma plugin and select Save.
  6. Hover over the Crowdin for Figma plugin and click Run.

Tilslutning af Figma med en Crowdin-konto

Opsætning af Enterprise-akkreditiver

Bemærk: For at opsætte Figma-integration kræves administratorrettigheder (eller højere) i Enterprise.

Følg disse trin for at angive Enterprise-akkreditiver i Figma:

  1. In the file menu, go to Plugins > Saved plugins. Alternatively, right-click the canvas and click Plugins > Saved plugins.
  2. Skift til Indstillinger.
  3. Angiv det Personlige Adgangstoken.
  4. Angiv organisationsdomænenavnet og klik på Forbind. Figma Plugin-forbindelse til Enterprise

To generate a new token in Crowdin Enterprise, follow these steps:

  1. Gå til Kontoindstillinger, Adgangstokens-fanen og klik på Nyt Token.
  2. Specify Token Name, select Scopes and Projects, click Create.

Enterprise Personlig Adgangstoken

Vælg Enterprise-projekt

To select the project you’d like to work with, click the drop-down menu in Settings > Crowdin Project, and select a project from the list. Later, you can click Disconnect in the same section to switch to another project if needed. Figma Plugin Selecting Crowdin Enterprise Project

Select a content type you’re going to work with in this project and click Save.

You can choose one of the available options:

The selected content type option affects which mode of the Crowdin for Figma plugin will be available to a user.
Figma Plugin Selecting Content Type

Select the specific branch your content will be uploaded to. If your Crowdin Enterprise project doesn’t have branches, leave it empty. Figma Plugin Selecting Branch

UI-lokalisering

Brug fanen Strengtilstand ved lokalisering af UI samt ved arbejde på dynamiske sider med udviklings- og marketingteams. På denne fane kan med ét klik tilføjes kildestrenge fra Enterprise til egne designs i Figma. Når teksterne er anvendt i designs, kan taggede skærmfotos automatisk uploades til oversætteres reference tilbage til Enterprise.

Brug af kildestrenge fra Enterprise i Figma

  1. Åbn Crowdin-plugin’et til Figma.
  2. Benyt i fanen Strenge feltet Søg til at finde den specifikke kopi. Strenge søgning kan ske efter kildetekst, streng-ID eller kontekst. Figma Plugin Strenge-fane
  3. Select the text layer to which you want to add text and click the link icon next to the needed string. Figma Plugin Using Source Strings from Crowdin in Figma

After using the source strings from Crowdin Enterprise in your designs, they become linked with the text fields, and you can preview translations for these strings in Figma and upload screenshots for them to your Crowdin Enterprise project.

You can link a single Crowdin string to one or multiple text fields in Figma. However, one text field can be linked only to a single Crowdin string. If you link a text field with an existing connection to a new Crowdin string, the previous connection will be terminated, and a new connection will be established. If you’d like to unlink a Crowdin string from all text fields it was previously linked to, right-click on the link icon next to the needed string.

Tilføjelse af kildestrenge fra Figma til Enterprise

You can add strings that are already used in the designs.

  1. Åbn Crowdin-plugin’et til Figma.
  2. For at tilføje de i designene anvendte strenge, så vælg hele billedet, flere billeder eller ønskede strenge på billederne.
  3. På på fanen Strenge, klik på .
  4. In the appeared dialog, fill in the required fields. You can filter the displayed strings if needed:
    • Select the Skip hidden elements filter option if some frames contain hidden elements that should not be added to Crowdin Enterprise.
    • Select the Skip untranslated elements filter option if some frames contain untranslated elements that should not be added to Crowdin Enterprise.
      Figma Plugin Tilføj streng
  5. (Optional) To update the string context and set the max.length of the translated text, click toward the needed string.
  6. Once all the needed strings are selected and configured, click Next.
  7. In the next dialog page, select the preferred options:
    • Auto-link existing strings – automatically compare text to existing strings in Crowdin Enterprise. If there’s a match, the text element will be linked to the string in the Crowdin Enterprise project.
    • Create missing keys – only new text elements are added to Crowdin Enterprise.
    • (Optional) To add labels to the strings, alternately select them from the Select Label drop-down menu.
    • Merge duplicates – link identical text elements to a single new string in Crowdin Enterprise. It’s useful in the following cases:
      • When adding multiple text fields with the same text, the plugin will add only one string to your Crowdin Enterprise project and link all duplicate text fields to it.
      • If your Crowdin Enterprise project already contains a string with the same text you’re adding from designs, the plugin will only link the text fields to the existing string and won’t create a new one.
    • Send screenshots
  8. Select the file in Crowdin Enterprise to which you want to add the strings. To add the same strings into multiple files in Crowdin Enterprise, alternately select the needed files from the Select File drop-down menu.
  9. Click Submit.
  10. Once the strings are added to Crowdin Enterprise, you’ll see a summary of the content sent.

Added strings will be transferred to your Crowdin Enterprise project and also displayed in the Strings tab’s list. You can edit, hide, or delete the strings from the same list anytime. The respective changes will also be applied to the strings in your Crowdin Enterprise project.

Adding Source Strings with Plural Forms

You can add strings with plural forms.

  1. Åbn Crowdin-plugin’et til Figma.
  2. For at tilføje de i designene anvendte strenge, så vælg hele billedet, flere billeder eller ønskede strenge på billederne.
  3. På på fanen Strenge, klik på .
  4. In the appeared dialog, fill in the required fields. You can filter the displayed strings if needed.
    Note: When adding plural strings, the fields in the String column serve for adding the other plural form.
  5. Click toward the needed string and click Add plurals.
  6. In the appeared dialog, fill in the fields for each plural form and click Save. Depending on the source language of the connected Crowdin Enterprise project, there could be a different number of plural forms you should specify.

    Note: You can add plural strings only to files that support plural forms (e.g., Android XML, Stringsdict, XLIFF, etc.).
  7. Once all the needed strings are selected and configured, click Next.
  8. In the next dialog page, select the preferred options.
  9. Select the file in Crowdin Enterprise to which you want to add the strings.
  10. Click Submit.

Read more about Plural Forms.

Opsætning af ICU-kildestrengsvariabler

Ved brug af ICU-strenge i designet kan der opsættes variabelværdier, og efter tilføjelse af sådanne strenge til designs, vil de fremgå i en formateret visning med de foruddefinerede værdier.

Once you use the needed ICU string from Crowdin Enterprise in your design, you can configure its placeholder values.

  1. Åbn Crowdin-plugin’et til Figma.
  2. Benyt i fanen Strenge feltet Søg til at finde den specifikke kopi. Strenge søgning kan ske efter kildetekst, streng-ID eller kontekst.
  3. Klik på på den relevante ICU-streng.
  4. Klik på Opsæt variabel.
  5. Angiv de relevante værdier for ICU-strengvariablerne.
  6. Klik på Indsend for at gemme de angivne variabler.
  7. Click Submit to update the source string text in designs.

When previewing translations for ICU strings in Figma, they will also be displayed in a formatted view if the values were preconfigured beforehand.

Key Naming Pattern Settings

To simplify adding strings from Figma to the Crowdin Enterprise project, you can set up the desired key naming pattern for the source string identifiers in the plugin settings. Crowdin-plugin’et til Figma vil foreslå streng-identifikatorerne til nye strenge baseret på det valgte mønster. While adding new source strings, you can always edit the suggested identifier to the preferred look.

To select the key naming pattern, follow these steps:

  1. Åbn Crowdin-plugin’et til Figma.
  2. Skift til Indstillinger.
  3. In the Key naming pattern section, select the preferred option from the drop-down menu.

Besides the existing patterns, you can configure your own pattern. To use a custom pattern, select the Custom key naming pattern option from the drop-down list and specify your pattern in the Custom Key Naming Pattern field.

Uploading Tagged Screenshots to Crowdin Enterprise

When adding source strings used in the designs, make sure to keep Send screenshots selected. As a result, the Crowdin plugin for Figma will upload screenshots along with the source strings.

Also, you can update screenshots with an Update screenshots option while editing a Crowdin string that is linked to the text fields in designs.

Additionally, you can mass upload screenshots to Crowdin Enterprise for strings linked with text fields in designs.

  1. Åbn Crowdin-plugin’et til Figma.
  2. Select one or more frames with the linked strings.
  3. In the Strings tab, click to upload screenshots for selected frames.

For mere info, tjek artiklen Skærmfotos.

Previewing Strings

Preview translations from Crowdin Enterprise for the strings used in the designs in Figma. Oversættelser kan forhåndsvises i nye eller de originale rammer. Ved oversættelsesforhåndsviser i de nye rammer, kan disse udfyldes med de reelle oversættelser eller strengnøgler til yderligere brug for udviklere.

To preview strings populated with translations, follow these steps:

  1. Åbn Crowdin-plugin’et til Figma.
  2. In the Strings > Preview Strings section, select Preview in duplicated page or Preview in the current page.
  3. Select Create with language.
  4. Select the target language you want to preview translations for (optionally, you can select the preferred plural forms). You can also choose All languages.
  5. Vælg indholdet, der ønskes forhåndsvist i Figma. Vælg Alle billeder eller Markerede billeder.
    Figma Plugin forhåndsvis strenge

To preview strings populated with key names, follow these steps:

  1. Åbn Crowdin-plugin’et til Figma.
  2. In the Strings > Preview Strings section, select Preview in duplicated page.
  3. Select Create with key names.
  4. Vælg indholdet, der ønskes forhåndsvist i Figma. Vælg Alle billeder eller Markerede billeder.
    Figma Plugin forhåndsvis nøgler

Strengefiltrering

To view only the strings linked to specific text fields, follow these steps:

  1. Select the needed text fields.
  2. In the Strings tab, click Filter strings.
  3. Select Show strings linked to selected text elements.

In the same way, you can filter strings linked to text fields for the whole frame or multiple frames.

Marketingvisualiseringslokalisering

Use the Pages tab to localize static pages, like brochures and banners. In this tab, you can send texts with context for translators to Crowdin Enterprise and upload translated copies back to Figma.

Sending Texts for Translation to Crowdin Enterprise

Tekst til oversættelse kan sendes fra enten markerede eller alle billeder i en Figma-fil. Translators will work with those texts in the list view and use designs as an additional context for even higher translation quality.

In Crowdin Enterprise, a root folder figma-plugin will be created. Den indeholder en undermappe navngivet efter Figma-filen med HTML-filer for hvert billede indeni. Om nødvendigt, kan indholdssegmentering deaktiveres i plugin’ets Indstillinger, så lange tekster ikke opdeles i sætninger.

Følg disse trin for at sende Figma-designs til oversættelse:

  1. Åbn den relevante Figma-fil.
  2. Gå til Plugins > Crowdin til Figma.
  3. In the Pages > Figma to Crowdin section, select the content you’d like to translate. Vælg Alle billeder eller Markerede billeder. Figma Plugin send tekster

When the source files are uploaded to your Crowdin Enterprise project, you can invite contributors to translate and proofread them.

Read more about translation strategies.

Pseudolokalisering

Even before translations are completed, you can test whether your application is ready to be localized using pseudo-localization. This feature allows you to simulate how the application’s UI will look with different languages to check whether the source strings should be modified before the project localization starts.

Once you send your texts for translation, you can start pseudo-localization.

  1. Åbn den relevante Figma-fil.
  2. Gå til Plugins > Crowdin til Figma.
  3. In the Pages > Pseudo-localization section, select the content you’d like to test with pseudo-localization. Vælg Alle billeder eller Markerede billeder.
  4. In the appeared dialog, configure settings according to your preferences.
  5. Click Submit. Figma Plugin Pseudo-localization

Read more about Pseudo-localization.

Uploading Translations from Crowdin Enterprise to Figma

You can synchronize texts between Figma and Crowdin Enterprise projects whenever you want to test the translated copy inside Figma or generate multilingual assets.

Følg disse trin for at uploade oversatte kopier til Figma:

  1. Åbn den relevante Figma-fil.
  2. Gå til Plugins > Crowdin til Figma.
  3. In the Pages tab, Crowdin to Figma section, select the target language you want to upload translations for. You can also select All languages.
  4. Vælg det indhold, der ønskes forhåndsvist i Figma. Vælg Alle billeder eller Markerede billeder.
    Bemærk: Sidenavne kan i Figma kun bestå af bogstaver (a-z, A-Z), cifre (0-9) og specialtegnene - _ .

    Figma Plugin Upload Oversættelser

Efter upload af oversættelser til Figma, vil den ændrede fil indeholde et separat billede med oversættelser for hvert målsprog. The newly uploaded translated versions won’t override the ones you uploaded previously. You can always delete the translated copies you no longer need.
Figma Plugin Uploadede Oversættelser

If you’d like the newly uploaded translated versions to override the previously uploaded ones, open the plugin Settings and select Override existing translations.

Crowdin for Figma Plugin in Dev Mode

Figma’s Dev Mode allows designers and developers to collaborate, ensuring accuracy in implementation and a smooth transition from design to code.

Read more about Figma Dev Mode.

The integration of Crowdin for Figma plugin with Dev Mode extends the functionality of both platforms, enhancing the localization process within the design environment. While Dev Mode in Figma has its limitations – it’s read-only, certain limitations apply to the Crowdin for Figma plugin’s capabilities:

What You Can Do:

  • Access the Strings tab to view and manage strings.
  • Explore string details, including file, key, context, and labels.
  • Quickly copy string keys for efficient workflow.

Features not available in Dev Mode: adding new strings to Crowdin, linking strings, sending screenshots, previewing translations, editing, hiding, or deleting strings.

Using Crowdin for Figma Plugin in Dev Mode

Despite the limitations, the Crowdin for Figma plugin remains valuable in Dev Mode, offering developers a streamlined approach to text elements management. Here’s a typical use case:

  1. Enter Dev Mode.
  2. In the right sidebar, switch to the Plugins tab.
  3. Click on Crowdin for Figma.
  4. In the Strings tab, click Filter strings and select Show strings linked to selected text elements.
  5. Select the needed string on the frame and hover over the icon in the string list to view all needed information (i.e., key, context, file it’s stored in, labels) about this particular string.
  6. (Optional) Click Copy string key to clipboard to further use it in code.

Compatibility with Figma for VS Code

Furthermore, the Crowdin for Figma plugin seamlessly integrates with Figma for VS Code, extending its functionality to developers using this environment.

Read more about Figma for VS Code.

Var denne artikel nyttig?