Spanish Total.js
English
Documentation For AI agents
Contents

Translate an application

Collect the texts of a project and compare resource files.

.md GitHub
On this page

Total.js applications mark translatable text with @(...), for example @(Welcome). Code can collect these texts for you.

Collect the texts of one file

  1. Open the file.
  2. Open the editor options and choose Localize current file.

Code copies the texts to your clipboard in the format of a resource file. If the file has no marked text, Code tells you so.

Collect the texts of the whole project

Open the editor options and choose Localize files. The Diff resource window opens with all the texts of the project in Resource B.

Compare two resource files

  1. Open the editor options and choose Diff resource tool.
  2. Paste the content into Resource A and Resource B, or click Load from the editor.
  3. Read the differences under the fields. Insert to A lists what Resource A is missing, and Remove from A lists what only Resource A has.
  4. Click Apply all to Resource A to take over the differences, or Copy to copy a single line.
  5. Click Push to the editor to replace the text of the open file with Resource A.

The Diff resource window with the Resource A and Resource B fields

Made in Europe