I am novice in php and I write my first web page using PHP + JS without any frameworks (maybe later).
I have the next question.
How to implement multi language in Twig without Gettext or other plugins?
Something like that (in pure PHP - no questions... but how use it in twig)
$lang=array(
"about_site" => "о нас",
"project" => "проект",
"team" => "команда");
In fact my project has no restrictions. If Gettext is the best solution for me - I'll use it. I thought I'll have to translate only 5-10 words per page. Using Gettext for this purpose is a bit strange.