{"id":13824945,"url":"https://github.com/simia-tech/caddy-locale","last_synced_at":"2025-05-07T20:41:59.154Z","repository":{"id":57483780,"uuid":"58268057","full_name":"simia-tech/caddy-locale","owner":"simia-tech","description":"Locale detection for caddy","archived":false,"fork":false,"pushed_at":"2020-02-18T10:09:29.000Z","size":29,"stargazers_count":8,"open_issues_count":1,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-07T20:41:36.346Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simia-tech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-07T13:52:23.000Z","updated_at":"2021-06-10T20:16:42.000Z","dependencies_parsed_at":"2022-08-28T17:02:03.541Z","dependency_job_id":null,"html_url":"https://github.com/simia-tech/caddy-locale","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simia-tech%2Fcaddy-locale","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simia-tech%2Fcaddy-locale/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simia-tech%2Fcaddy-locale/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simia-tech%2Fcaddy-locale/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simia-tech","download_url":"https://codeload.github.com/simia-tech/caddy-locale/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252954127,"owners_count":21830893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T09:01:12.350Z","updated_at":"2025-05-07T20:41:59.135Z","avatar_url":"https://github.com/simia-tech.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# Locale detection for caddy\n\n## Configuration schema\n\n    locale \u003cavailableLocales...\u003e {\n      detect \u003cmethods...\u003e\n      cookie \u003ccookie name\u003e\n      available \u003cavailableLocales...\u003e\n      path \u003cpath scope\u003e\n    }\n\nA `method` can be currently `cookie` or `header`. If `cookie` is added, `cookie name` defines from which cookie the\nlocale is read. The `header` method extracts the locales from the `Accept-Language` header. The first `availableLocale`\nis also the default locale, which is picked if none of the locales from the detection methods is in `availableLocales`.\n\nThe defaults are: `methods = [header]`,  `cookie name = locale`, `path scope = /`.\n\n## Example\n\n    locale en de {\n      detect cookie header\n    }\n\n    rewrite {\n      ext /\n      to index.{\u003eDetected-Locale}.html index.html\n    }\n\n    header / Vary \"Cookie, Accept-Language\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimia-tech%2Fcaddy-locale","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimia-tech%2Fcaddy-locale","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimia-tech%2Fcaddy-locale/lists"}