{"id":20095403,"url":"https://github.com/parfaitementweb/statamic-locale-suggester","last_synced_at":"2025-09-01T20:37:16.179Z","repository":{"id":57035909,"uuid":"350674759","full_name":"parfaitementweb/statamic-locale-suggester","owner":"parfaitementweb","description":"Statamic addon to suggest your visitors to read the page in their preferred language.","archived":false,"fork":false,"pushed_at":"2023-06-14T09:53:32.000Z","size":10,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T21:39:22.837Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","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/parfaitementweb.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-23T10:46:26.000Z","updated_at":"2021-03-23T16:49:17.000Z","dependencies_parsed_at":"2025-01-13T03:40:37.740Z","dependency_job_id":"18db21b2-fb4c-40d9-a86a-b9a02246c29d","html_url":"https://github.com/parfaitementweb/statamic-locale-suggester","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"65c76e1203f1e0b31019f8ed1e26a6b18454d643"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parfaitementweb%2Fstatamic-locale-suggester","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parfaitementweb%2Fstatamic-locale-suggester/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parfaitementweb%2Fstatamic-locale-suggester/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parfaitementweb%2Fstatamic-locale-suggester/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parfaitementweb","download_url":"https://codeload.github.com/parfaitementweb/statamic-locale-suggester/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241534685,"owners_count":19978023,"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-11-13T16:55:15.418Z","updated_at":"2025-03-02T16:21:36.340Z","avatar_url":"https://github.com/parfaitementweb.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Locale Suggester\n\n![Statamic 3.0+](https://img.shields.io/badge/Statamic-3.0+-FF269E?style=for-the-badge\u0026link=https://statamic.com)\n\u003e Suggest your visitors to read the content in their preferred language. 🌍\n\n## Features\n- **Displays an alert** if the current page is available in the **visitor's preferred language.**\n- Based on your **multi-site configuration**.\n- Entirely **customizable**\n- Entirely **translatable**\n- **Built-in translations** in English, French, German, Spanish, Italian, Dutch and Portugese\n\n## How does it work?\n\n1. We detect the preferred language of your visitors based on their browser settings.\n2. If their preferred language matches a locale in your multi-site configuration, the alert box will be shown.\n3. If the visitor dismisses the alert box, we set a cookie and he won't be bothered again.\n\n## Getting Started\n\n\u003e This addon required PHP PECL intl \u003e= 1.0.0 to be installed on your server.\n\nWe have made things easy for you to start. Here are the three steps your need to follow:\n\n1. **Install the addon**  \n   Simply run `composer require parfaitementweb/statamic-locale-suggester`  \n   You also can follow the [official Statamic help guide](https://statamic.dev/addons#installing-addons)\n\n\n2. **Add these two tags in your layout.**  \n\nThis insert the alert in your layout. By default, its position is fixed so placing this tag at the bottom of your `\u003cbody\u003e` is fine.\n```\n{{ locale-suggester:alert }}\n```\n\nAdd the scripts in your layout. This handles the dismiss button.\n```\n{{ locale-suggester:script }}\n```\n\n3. **Enjoy.**\n\n## What does the addon look like?\n\n![Statamic Locale Suggester Preview in EN](https://parfaitementweb.com/statamic/statamic-locale-suggester/statamic-locale-suggester-en.png)\n\n![Statamic Locale Suggester Preview in FR](https://parfaitementweb.com/statamic/statamic-locale-suggester/statamic-locale-suggester-fr.png)\n\n![Statamic Locale Suggester Dashboard](https://parfaitementweb.com/statamic/statamic-locale-suggester/statamic-locale-suggester-dashboard.png)\n\n## Customize the alert, the script and the translations\n\nYou can execute the following commands so the views and translations files will be copied to your vendor resources folder.\n\n```\nphp artisan vendor:publish --tag=statamic-locale-suggester-views\nphp artisan vendor:publish --tag=statamic-locale-suggester-translations\n```\n\nDon't be shocked when you'll discover we've used plain and inlined CSS rules in our alert template. This is done to ensure maximum compability without the need to recompile and repurge your stylesheet before being able to use this addon. You can of course customize everything to your needs.\n\n## Changelog\n\n**V1.0.1**  \nSameSite Cookie value has been set to Lax.  \nImproved default UI for the alert\n\n**V1.0.1**  \nBetter to not show the alert for unpublished versions isn't?\n\n**V1.0.0**  \n🚀 Would you like to read the initial commit in another language?\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparfaitementweb%2Fstatamic-locale-suggester","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparfaitementweb%2Fstatamic-locale-suggester","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparfaitementweb%2Fstatamic-locale-suggester/lists"}