Translations

Make your plugin global. Senddera supports multi-language plugins through a simple localization system.

Localizing your Plugin

All text in your plugin should be translatable. Senddera uses PHP array-based translation files stored in your plugin's resources/lang directory.

Structure

Organize your translations by language code:

lang/
  en/
    messages.php
  fr/
    messages.php

Usage in Code

Use the trans() or __() helpers to fetch translated strings:

// Example
echo __('my_plugin::messages.welcome');