编辑翻译

问题

您希望编辑由 Lingo.dev Compiler 生成的翻译。

解决方案

  1. 打开 lingo/dictionary.js 文件:

    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",
            },
          },
        },
      },
    };
    

    此文件的具体位置取决于 sourceRootlingoDir 的值。要了解更多信息,请参阅 编译器选项

  2. 找到包含要编辑翻译的对象。

  3. 编辑该对象的 content 属性。

  4. 保存文件。

警告: 如果原始源文本被更新,您的更改将被覆盖。为避免此问题,请考虑使用 覆盖翻译 而不是直接编辑。