Tools
Tools: Automatic Language Support: Add a Modern TR/EN Toggle to Any PHP/HTML Site (Fast)
2026-01-17
0 views
admin
Why I built this ## What it does (in plain terms) ## Key features ## Quick start ## 1) Clone ## 2) Run the script ## 3) Customize translations via JSON ## Demo (UI idea) ## Repository ## mebularts / Automatic-Language-Support ## Thanks to this code, you can add multiple language support to any site you want with a single click. It does the installation automatically when you run the code | @mebularts ## EN | Automatic Language Support ## Features ## Installation ## When this tool is a good fit ## Notes and expectations (the honest part) ## Roadmap ideas (if people want it) ## License Internationalization is one of those "I'll do it later" items... until your site suddenly needs Turkish + English yesterday. The usual options are either: So I built a pragmatic helper: Automatic Language Support - a script that can add multi-language support to existing PHP or HTML projects with minimal fuss. It is designed for the "ship it" moments: Automatic Language Support: In short: run it once, let it do the setup, then you control translations via JSON. Run the script and select your project folder. The script will process your files and add what is needed. Tip: Keep your JSON keys stable, and treat the JSON as a "source of truth" for your UI copy. Here is a small CodePen that demonstrates the toggle UI concept: If you want to try it immediately: Automatic Language Support is a versatile script designed to add automatic language support to your PHP or HTML projects. It automatically processes your text, stores it in JSON files, and adds a modern, stylish language switcher to your web pages. This tool shines when: No auto i18n tool can magically understand your brand voice, industry terms, or context the way humans do. This is best used as: You still get full control via the JSON files (en.json, tr.json) once the base is in place. If there is interest, I would love to iterate on: If you try it and have feedback, open an issue - real-world pain points are the best roadmap. This repository is published under GPL-3.0. Automatic Language Support adds bilingual support to PHP/HTML projects by processing your text, saving it into JSON, and injecting a modern language switcher - quickly. If it can be automated, I probably already tried. Templates let you quickly answer FAQs or store snippets for re-use. Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink. Hide child comments as well For further actions, you may consider blocking this person and/or reporting abuse COMMAND_BLOCK:
git clone https://github.com/mebularts/Automatic-Language-Support.git Enter fullscreen mode Exit fullscreen mode COMMAND_BLOCK:
git clone https://github.com/mebularts/Automatic-Language-Support.git COMMAND_BLOCK:
git clone https://github.com/mebularts/Automatic-Language-Support.git COMMAND_BLOCK:
git clone https://github.com/mebularts/Automatic-Language-Support.git Enter fullscreen mode Exit fullscreen mode COMMAND_BLOCK:
git clone https://github.com/mebularts/Automatic-Language-Support.git - Too heavy for a small project (framework-level i18n plumbing, lots of refactors), or
- Too manual (copy/paste strings into files forever, pray nothing breaks). - landing pages
- small product sites
- internal tools
- client projects where "just make it bilingual" lands in your inbox at 18:59 - processes your project text automatically,
- stores strings in JSON,
- and adds a modern, responsive language switcher to your pages. - Automatic language detection and switching
- JSON-based string storage (easy to manage, easy to diff)
- Stylish toggle button (modern and responsive)
- Seamless integration for existing PHP/HTML projects - a language toggle button is added to the footer,
- text is translated based on stored JSON files,
- and you can edit en.json / tr.json in the assets folder to customize. - Automatic Language Detection: Easily detects and switches between languages.
- Customizable JSON Files: Stores text in JSON format for easy management.
- Stylish Toggle Button: Includes a modern and responsive language toggle button.
- Seamless Integration: Integrates smoothly with your existing PHP or HTML projects. - Clone the repository: git clone https://github.com/mebularts/Automatic-Language-Support.git Enter fullscreen mode Exit fullscreen mode
- Run the script and select your project folder.
- The script will automatically process your files and add the necessary language support. - Once the script has run, your project will have a language toggle button added to the footer of your web pages.
- Text will be automatically translated based on the stored… - you want bilingual support quickly
- your site is already built (PHP/HTML) and you do not want a full refactor
- you prefer simple JSON over complex localization pipelines
- you want a clean toggle that does not look like it time-traveled from 2009 - a fast bootstrapper,
- a structure generator,
- and a workflow accelerator. - more language packs (beyond EN/TR)
- better string grouping / namespaces
- optional per-page toggles
- finer control over where the switcher is injected
how-totutorialguidedev.toaimlswitchgitgithub