Update 19.02.2026 6:00: Created files locale/en/locale.cfg and locale/ru/locale.cfg — full localization files for Factorio (needed for translating mod settings, shortcuts, chat messages, and as a fallback).
Added the UI_TRANSLATIONS table to gui.lua with a complete set of translations into Russian and English for all interface elements (59 lines).
Added the L(key, lang, ...) function — gets a translation by key and language, supports formatting with string.format.
Replaced all {"fp-browser.XXX"} in GUI functions with calls to L(key, lang) — now buttons, labels, tooltips, and dropdowns take their text from a Lua table instead of the locale files in Factorio.
Rewrote toggle_lang — now when you switch the language, the GUI is completely recreated with the new language (while keeping the search, sort, and current page state), instead of just updating the tags.
Создал файлы locale/en/locale.cfg и locale/ru/locale.cfg — полные файлы локализации для Factorio (нужны для перевода настроек мода, shortcut, chat-сообщений и как fallback).
Добавил таблицу UI_TRANSLATIONS в gui.lua с полным набором переводов на русский и английский для всех элементов интерфейса (59 строк).
Добавил функцию L(key, lang, ...) — получает перевод по ключу и языку, поддерживает форматирование с string.format.
Заменил все {"fp-browser.XXX"} в GUI-функциях на вызовы L(key, lang) — теперь кнопки, метки, тултипы, dropdown-ы берут текст из Lua-таблицы, а не из locale файлов Factorio.
Переписал toggle_lang — теперь при переключении языка GUI полностью пересоздаётся с новым языком (с сохранением состояния поиска, сортировки и текущей страницы), а не просто обновляются теги.