Do not compile it: a live preview for the Lokalise SDK, so that you can check on the fly on the button
Imagine that if you localize your application, you would have the opportunity to quickly estimate the text options on the application itself, rather than “applying to the layout”. Sounds cool? So we thought so. Therefore, today we are introducing our new Lokalise SDK Live Edit Module for iOS applications, which allows you to monitor the changes in real time when you localize any project for iOS.
How convenient it is and how much time a small team can save, which cannot afford to stretch the localization process for weeks and months, constantly tugging at the developer, we will tell below. Earlier in our publications we talked about such pitfalls as the dimension of the elements of web sites and that the design should be adaptable to the needs of localization, and not nailed to three hundred hundred nails to the layout. ')
Unfortunately, such a "trick" does not work in the field of mobile development, where application developers are often limited to a very small screen of a device compared to a desktop or laptop monitor. This issue is particularly acute in applications that focus on smartphones (on tablets you can still think of something).
Now, in order to check whether one or another word is embedded in the space allotted to it, besides making changes to the localization, it is necessary to compile the application each time, and that is a long time. As we remember, in mobile development the space is very limited, and if you do not "fit" into the space allotted to the text, then the whole operation will have to be carried out anew.
Lokalise SDK Live Edit Module - an add-on to our SDK for iOS, allows you to monitor UI changes and the words and phrases used in the interface almost in real time. The main target audience for the Live Edit Module is localizers and QA engineers. Users do not have access to it. It will be most effective to show the principle of operation of the module using video:
Demonstration of the Lokalise SDK Live Edit Module
Separately, I would like to note that the synchronization of the session of the editor and the device occurs through the scanning of the QR code and does not require any physical or other specific connections. It will be enough just to connect to the Internet.
What can be done in live-editing mode:
use the navigation application on the device;
see all application lines in the corresponding localization editor window;
see changes made in the editor in real time;
switch the application localization language from the editor;
to open the debug menu, simply shake the device;
switch between localization stages (Release, Prerelease, Local, Debug).
Also soon it is planned to add a built-in mechanism for taking screenshots from the device screen. Another strength of Live edit Module is the ability to immediately send users the changes made to applications. A great option for hot fixes and just urgent fixes in the localization of the application.
We hope that our development will help application developers to simplify and speed up the localization process. In addition, the Live-mode will allow you to unload the direct developer and completely “push” the localization process to those who should do it - to translators, QA-engineers and, in extreme cases, designers. If you are a human orchestra and prefer to work alone, then Live-mode will help save time on endless compilations in the process of finding the optimal solution.
To work in Live mode, you need to install Lokalise iOS SDK version 0.6.0 and higher. Also, Xcode 8.0 or higher is required for correct operation. Detailed information on installing and configuring the Lokalise Live edit module can be found on the development page . The SDK supports work with devices running iOS 8.0 and higher, that is, covers all current Apple devices for 2017.