Appery.io

The Appery.io Developer Hub

Welcome to the Apperyio developer hub. You'll find comprehensive guides and documentation to help you start working with apperyio as quickly as possible, as well as support if you get stuck. Let's jump right in!

Guides    Latest Updates

i18n

Internationalisation is one of the must have feature when building global reach mobile apps.

Appery.io provides built-in support i18n and l10n.
By default every app with library from version 1.3 and higher has predefined AngularTranslate JavaScript asset.

define(['require', 'angular'], function(require, angular) {
    
    var module = angular.module('AngularTranslate', ['pascalprecht.translate']);
    
    module.config(
        
        ["$translateProvider", function($translateProvider) {
            $translateProvider.translations('en', {
                TITLE: 'Hello'
            });
            $translateProvider.translations('de', {
                TITLE: 'Hallo'
            });
            $translateProvider.preferredLanguage('en');
        }]);
    
});

Line 14 specifies English language as default.

Following example specifies German language as default.

 $translateProvider.preferredLanguage('de');

New language can be added by analogy with English (en) and German (de) languages
Internalization messages and labels can be added by analogy with TITLE message.

On the app UI side internalization messages should have value by pattern {{ 'key' | translate }}

{{ 'TITLE' | translate }}

Following code setup default language to German (de)

Apperyio.get("$translate").use("de");

i18n


Internationalisation is one of the must have feature when building global reach mobile apps.

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.