Back to Plugins
exportLang.json

exportLang.json

exportLang.json

variables to jsonjsonextractorchatgpteditinglanguagevariablesvariable collectionexportgeneratejson

Plugin Preview

exportLang.json preview

About this plugin

This Figma plugin, named exportLang, streamlines the process of extracting static texts from Figma designs and generating variable names for these texts through ChatGPT. The workflow is as follows:


Data Retrieval:


The plugin reads a JSON file, exportLang.json, where users store static texts from their Figma designs.

Variable Name Assignment:


For each static text in the JSON file, the plugin generates a unique variable name. For example, if there are three texts, the variable names might be text1, text2, and text3.

ChatGPT Interaction:


Using the generated variable names and their corresponding static texts, the plugin communicates with ChatGPT. It sends prompts to ChatGPT, requesting translation of the static texts into variable names.

Response Handling:


The plugin receives responses from ChatGPT, containing suggested variable names. These responses are associated with the original static texts.

Output in JSON Format:


The final output is a JSON file containing a mapping between variable names and their respective static texts. This structured JSON output facilitates easy integration into users' Figma projects.

Plugin Details

Version6
CreatedJanuary 10, 2024
Last UpdatedMay 9, 2024
CategoryImport & export plugins
CreatorHuseyin AKKAYA
Stats10 installs, 0 likes
PricingFree

Technical Details

  • API:1.0.0
  • UI:dist/ui.html
  • main:dist/code.js
  • Document Access:dynamic-page
  • Editor Types:
    figma
  • Allowed Domains:
    • https://exportlangjson.lemonsqueezy.com/
    • https://jellyfish-app-srxm6.ondigitalocean.app/api/chatGtp/variables
    • https://jellyfish-app-srxm6.ondigitalocean.app/api/payment/subcriptionDev
    • https://jellyfish-app-srxm6.ondigitalocean.app/api/paymentPage/subcription
    • https://jellyfish-app-srxm6.ondigitalocean.app/api/user/get-usage-limit
    • https://jellyfish-app-srxm6.ondigitalocean.app/api/user/register