Note: This article describes how file uploading works in Lokalise Expert. To learn how file management works in Lokalise Vantage, see: Lokalise Vantage: Files.
In this article, you’ll learn how to upload your translation files to Lokalise.
Keys and files are integral parts of translation projects in Lokalise. If you’re new to Lokalise projects, we highly recommend checking out the Projects article. Pay particular attention to the section on how platforms, keys, and files are organized to get a clear understanding of how your data is hosted and represented in Lokalise.
Note on project types and supported file formats
Before proceeding, ensure you’ve selected the correct project type for your content. The project type is chosen during creation and cannot be changed later. Your interface may vary slightly depending on the project type, and certain options might not be available.
For a complete list of supported file formats, check out the Supported file formats collection.
Key-based file formats and developer tools
Key-based translation files (e.g., JSON, XML, YAML, Excel) can only be uploaded to Web and Mobile projects.
If you're integrating with services like GitHub or Bitbucket, also use Web and Mobile projects, but refer to the specific app’s instructions.
Non-key-based file formats
Document-based formats, such as DOCX, PPTX, HTML, and IDML, should be uploaded to Ad hoc documents projects.
XLIFF files can be uploaded to both Web and mobile and Ad hoc documents projects, depending on your localization workflow:
Web and mobile projects: XLIFF 1.2 files containing application or website strings, imported as independent translation keys.
Ad hoc documents projects: XLIFF 1.2 and 2.x files containing documentation or other long-form content, where the original document structure, content order, and inline codes need to be preserved.
For more information, see XLIFF in Web and mobile projects (.xlf, .xliff) and XLIFF in Ad hoc documents projects (.xliff, .xlf).
While Lokalise doesn’t support DOC or PDF formats directly, you can order professional translations via Gengo, adding such files to the order, though there are limitations.
Translations from content management services
For third-party content management tools like Contentful, Marketo, or Intercom Articles, use Content integration projects. In these cases, you won’t manually upload files; instead, run an import process as explained in the Content integration article.
Accessing the Upload page
To upload key-based or non-key-based files, open your translation project and go to the Upload page. Alternatively, you can use our CLI, API, or apps to upload translation data.
For Web and mobile projects, the Upload page offers a variety of options:
For Ad hoc documents projects, the Upload page offers fewer options and groups selected files into two sections: XLIFF files and Other files. XLIFF files have additional language detection and import options.
Content integration projects do not have an Upload page. Instead, you can manage imported content under the Content management tab.
For specific upload/download scenarios, refer to the Filenames article.
Choosing data to upload
To upload files:
Click Select a file and choose files from your PC, or drag and drop them into the upload area.
To upload a directory, select it through the UI or drag and drop it into the upload area.
Alternatively, click Copy-paste data and paste file contents into the text box:
Once you select files, they’ll be displayed with the following details:
You can see the following info:
Original filename: Lokalise detects language ISO codes in filenames and highlights them. These will be replaced with the
%LANG_ISO%placeholder upon import and substituted back with the actual language codes when exporting.
You can adjust the filename by clicking on it:
File format.
Number of detected translation keys and word count.
Detected language: Lokalise auto-detects the language or uses Google Translate. If incorrect, you can manually adjust it.
Language detection for XLIFF files
When uploading XLIFF files to an Ad hoc documents project, Lokalise reads the source and target language codes declared in the files and displays them in the Detected source and Detected target columns.
The source text is always imported into your project's base language. You can choose how to handle existing target translations:
Keep the detected target language to import existing translations into that language.
Select a different target language if necessary.
Select Skip import to import the source text only.
If a file requires your attention, Lokalise displays a Review or Error status along with additional information.
For more details about language detection, warnings, and import errors, see XLIFF in Ad hoc documents projects (.xliff, .xlf).
Upload options
There are a handful of upload options that you may enable or disable as needed:
Replace
\nwith line break — converts\ncharacters into actual line breaks within the Lokalise project editor. This makes the text easier for translators to read. When exporting, these line breaks can be converted back to\n.Convert to universal placeholders — in your translations, you might use special placeholders to represent dynamically inserted values. When working across multiple platforms, such as Web and Android, each platform may require these placeholders to be formatted differently. To streamline this, Lokalise allows you to store all platform keys within a single project and automatically converts these placeholders into a universal format. When you export your translation files, Lokalise will then convert these universal placeholders back into the platform-specific formats required by each platform.
Detect ICU plurals — ICU (International Components for Unicode) provides a standard for handling plurals and other language-specific variations. Enabling this option allows Lokalise to recognize and display ICU plural expressions correctly. To learn more about ICU, please check our Complete guide to ICU message format.
Please be aware that this feature has known limitations, and in certain cases, plurals might not be properly recognized. For instance, while the expression
booksCount: "{n, plural, one {# book} other {# books}}"works correctly, it may not function as expected when embedded in a larger string, such asbooksCount: "I have {n, plural, one {# book} other {# books}}". Therefore, we recommend double-checking such plural keys after uploading.Named ICU placeholders are not automatically mapped to unique positional placeholders during export. For cross-platform projects where the same key is exported to formats such as Android XML, iOS strings, or printf-style placeholders, avoid relying on named ICU placeholders like
{location},{name}, or{surname}to produce%1$s,%2$s, and%3$sautomatically. Use numeric ICU placeholders ({0},{1},{2}), explicit platform placeholders, or manually assign placeholder numbering in Lokalise before exporting.
Tag keys — you can tag the keys affected by your upload. Choose existing tags or create new ones, and decide whether to tag newly created, updated, or skipped keys.
Differentiate keys by file — this option prevents merging keys with the same name across different files. It’s useful if you need to keep similar keys separate based on their original files.
Fill empty keys with key names — if a key doesn’t have a value, the key name itself will be used as the value. You can update these values later.
Hide from contributors — make newly added keys visible only to contributors with the Manage keys permission. These keys can be made visible to contributors later.
Custom translation statuses — if custom translation statuses are enabled in your project settings, this option lets you assign specific statuses to inserted, updated, or skipped keys during the upload process.
Enable automations — apply any existing automations to the uploaded keys. For more details, refer to the Automations documentation.
Pre-translate with 100% TM matches — Lokalise checks your translation memory (TM) for 100% matches and automatically applies these translations to the uploaded keys. Note that this feature cannot be used simultaneously with Enable automations.
This feature cannot be used in conjunction with the Enable automations option. If you need to pre-translate the uploaded texts and apply some automation logic, create an automation action Apply translation memory > with threshold 100%, and tick only the Enable automations setting mentioned above.
Save final translations to TM — available when uploading XLIFF files to Ad hoc documents projects. By default, existing translations imported from XLIFF files are not saved to the translation memory. Enable this option to save eligible finalized translations. A translation is saved to the TM only if:
Its state in the XLIFF file is
final,signed-off, orreviewed.The source language declared in the file exactly matches the project's base language, including the regional variant where applicable.
You have reviewer rights in the project.
The translation is imported into the project rather than skipped.
Replace modified values — by default, Lokalise preserves existing translation values when you upload a file containing keys that are already present in the project. Enable this option to update existing translations with values from the uploaded file.
Replace metadata values — an additional option available when Replace modified values is enabled in Web and mobile projects. It applies only to Structured JSON files and lets you update key metadata, including descriptions (
notes), character limits (limit), and tags.When enabled, tags from the uploaded file replace tags previously assigned through file uploads. Tags added manually, through bulk actions, tasks, or connectors are preserved.
Note: The
contextfield cannot be changed through file uploads, even when Replace metadata values is enabled.When you reimport source content with Replace modified values enabled, existing tasks may be updated to reflect source text changes or removed keys. See How file reimport affects existing tasks for details.
When reimporting XLIFF files in Ad hoc documents projects, the behavior also depends on whether you're updating the source content or importing target translations.
Enable cleanup mode — when this option is enabled, Lokalise will delete any keys and their translations that are not found in the uploaded file. This is a powerful feature, so use it with caution! Before the upload is finalized, Lokalise will prompt you to confirm the deletion to ensure you don’t accidentally remove important data.
Cleanup mode takes filenames and platforms into account. For instance, if your project has multiple keys assigned to a file named
%LANG_ISO%.jsonand other keys that aren’t assigned to any file, uploading a%LANG_ISO%.ymlfile with new keys will only affect entries related to the.ymlfile. The existing keys assigned to the.jsonfile or unassigned keys will remain unchanged, while any existing entries assigned to the%LANG_ISO%.ymlfile will be removed if they are not included in the uploaded file.Note: When updating the source content of an XLIFF file in an Ad hoc documents project, translation units that are no longer present in the uploaded file are removed together with their translations.
Starting the upload and viewing upload progress
Once all filenames, languages, and settings are correct, click Import the files to start the upload. The process runs in the background, allowing you to continue working or navigate to another page.
If your project doesn’t already include a language found in the uploaded files, Lokalise will automatically add it (note: this does not apply to uploads via API).
To monitor your upload’s progress, go to More > Activity in the main menu:
The Active processes tab shows all current uploads and other tasks, where you can cancel them if needed.
Once the upload is complete, it will move to the Finished processes tab.
Click on any finished process to view detailed information:
Imported files
Number of keys inserted, updated, and skipped
Imported languages
Status of each file
You can clear all finished processes from the list by pressing Clear. Note that processes older than 48 hours are automatically removed from the list.
Custom language codes
If you’re using a custom language code (e.g., sk-SK instead of the standard sk), follow these steps after the upload:
Open your project.
Click the language dropdown, find your language, and click the three dots next to its name.
Select Settings.
Enable the Custom language code option.
Enter your desired custom language code.
For more information, refer to the Language settings article.








