http.locale Plugin
This feature does not come with Caddy by default. To get it, select the http.locale plugin when you download Caddy.
Locale detection for caddy
Examples
Cookie / header locale detection
locale en de { detect cookie header } rewrite { ext / to index.{>Detected-Locale}.html index.html } header / Vary "Cookie, Accept-Language"
This example tries read the locale from a cookie and if this fails, uses the Accept-Language header.
Related Links
Documentation
Access the full documentation for this plugin off-site:
Plugin Help
Get help from the maintainers of the http.locale plugin:
Plugin Website
Visit http.locale’s website for more information:
Plugin Author: Philipp Brüll
Last Updated: 20 Oct 2017, 8:21 AM
This plugin is independent of the Caddy project and is not endorsed or maintained by Caddy developers. Use at your own risk. Do not file issues for this plugin on Caddy’s bug tracker.