Uploading files

Updated 16 days ago ​by Nick Ustinov

Lokalise supports most popular iOS, Android and Web development string file formats. If you would like us to extend support to a new format or a format's version, just drop us a line. It usually takes us a couple of days to add a format.

Your part is to drag and drop your files altogether or one by one. Lokalise will match keys and translations out of the files where possible.

To begin, navigate to project's Uploader by clicking the green button "Upload".

Next, drag and drop the files. 

Lokalise will figure out the language from inside the files themselves. Some formats carry language settings inside. If not, the system uses the Google Translate detection engine to detect the language from translations if your file already have some. 

For compatibility, Lokalise will also scan the filenames for language codes (green highlighting below). Note, however, that this practice is less and less popular for different reasons. 

In case you have a complex folder/filename structure, use Google Chrome to drag and drop the entire folder to Lokalise.

Once the detection is done, you need to review filenames and detected languages and make corrections if needed.

As you can see in the example above, last file (Srtrings.sk-SK.resx) was not detected properly, as the language code is not highlighted in green and the language of the file is Slovak, not English as detected on the image. Two corrections are necessary in that case. First, set language dropdown to Slovak. Second, replace the non-detected language code with Lokalise placeholder %LANG_ISO%, so once you are exporting keys, the language code would be inserted properly.



Bear in mind again that it is not mandatory to use a language code in filenames. In case you keep files organized by folders with language codes, you can set the required bundle structure at Downloads page later. 

If you are using a custom language code, e.g. sk-SK instead of standard sk, after the upload do the following: go to projects dashboard, click small triangle near the language for which you need a different code and choose "Language settings...". Enable "Custom language code" switch there and set the desired language code.

When all looks good with filenames and languages, adjust the upload settings on the right side and click "Import the files". Do not navigate away from Uploader until the import is finished.

Once the import is finished, you can right away review the results by clicking the imported/skipped/updated links in each of the files.



How did we do