Skip to main content
Version: 2.0.0

The Basics

📄️Translator

With the packages\base\Translator class — whose methods are written as static for convenient use without repeating code — you can make the text throughout your website multilingual. To do this, the site's text is stored in separate json files. Using the Translator class, you can reuse the stored phrases across your code as many times as you need. When a language code or country code appears in the URL (either as part of the path or as a URL parameter), the framework automatically loads the language file corresponding to that language or country. In addition, when generating URLs, if you use the base\url method, it automatically includes the default language in the URLs.