Editing translations

Problem

You want to edit a translation that was generated by Lingo.dev Compiler.

Solution

  1. Open the lingo/dictionary.js file:

    export default {
      version: 0.1,
      files: {
        "App.tsx": {
          entries: {
            "1/body/0/argument/1": {
              content: {
                en: "Start prompting (or editing) to see magic happen :)",
                es: "¡Empieza a escribir (o editar) para ver la magia suceder! :)",
              },
              hash: "fe1cdb8d561fcfa87dd6a4ce2c0c5b96",
            },
          },
        },
      },
    };
    

    The exact location of this file depends on the values of sourceRoot and lingoDir. To learn more, see Compiler Options.

  2. Find the object that contains the translation to be edited.

  3. Edit the object's content property.

  4. Save the file.

Warning: Your changes will be overwritten if the original source text is updated. To avoid this, consider overriding translations instead of editing them.