Skip to content

An easy library to create multilingual support Telegram Bots

License

Notifications You must be signed in to change notification settings

daniel-lucio/multilingual-support

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

multilingual-support

An easy library to create multilingual support Telegram Bots

How to Use it?

<?php
use okayinc;

$l = new language('language', 'default');
echo $l->get('index');

Where:

  • language is the current language to use, a file returning the associative index must exist, such as en.php, es.php, fr.php
  • default is the default language incase the index of the main language doesnt exists, by default is english

Example

$l = new language('en');
echo $l->get('index');

en.php

<?php
return [
        'index' => 'Your index is',
];

es.php

<?php
return [
        'index' => 'Tu índice es',
];

About

An easy library to create multilingual support Telegram Bots

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages