crowdin/mobile-sdk-ios

CDN setup with .xml file

mahyarwd opened this issue · 3 comments

Hey guys

I'm trying to implement the SDK in our iOS app, but I'm having difficulty with getting it to work.
The issue I'm having is that the translation files dont get downloaded at all. After some playing around I found out that the problem seems to be with us using ".xml" instead of ".string" file.
I couldnt find any documentation on this, so I'm not sure if it's me doing something wrong or the SDK just doesnt support .xml files.

Is .xml files not support?

Thanks in advance!

Hi @mahyarworkday!

The iOS SDK works only with the native iOS strings/stringsdict file formats. Also, the iOS XLIFF is supported

What kind of XML files you are using?

Hey @andrii-bodnar

I see, then it makes a bit more sense.
The xml file i'm using looks pretty much like this:

<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
    <string name="app_name" comment="NOT TO BE TRANSLATED">App Name</string>
    <string name="string_inside_app">Title</string>

@mahyarworkday this file looks like a regular Android XML file

There is a "Bundles" feature in Crowdin. This feature allows adding and configuring bundles for exporting sets of strings in one of the selected formats and this feature supports export to the iOS Strings file format.

Then, bundles can be used in the Content Delivery while creating a Distribution for your iOS app.

Read more - Bundles