GitHub Repository

apiato

Definition

Languages are not real Components, they are just files that holds translations.

Rules

Folder Structure

 - app
    - Containers
        - {container-name}
            - Resources
                - Languages
                   - en
                      - messages.php
                      - users.php
                   - ar
                      - messages.php
                      - users.php

Usage

Nothing much to show here, here’s how you use translated strings:

<?php

__('messages.welcome');

echo __('messages.welcome');

dd(__('messages.welcome'));

For more info about the localization checkout the Localization page.