Technology Sharing

Pure javascript to achieve batch compression of pictures, zip download, backend ThinkPHP multi-language switching, international station

2024-07-11

한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina

I am working on a multi-language tool website recently and need to switch between multiple languages. When it comes to multi-language websites, there are definitely two ways: the first is subdomains, and the second is subdirectories. Determine according to your needs.
The background configuration is as follows:
insert image description here
Front desk display:
insert image description here
The front-end pure javascript implementation means that the image needs to be uploaded to the back-end after compression, and the image is compressed and downloaded in zip packageimage CompressDemo: https://www.piccompress.com/