An open API service indexing awesome lists of open source software.

https://github.com/parfaitementweb/statamic-country-fieldtype

Statamic Country dropdown with ISO 3166 options values
https://github.com/parfaitementweb/statamic-country-fieldtype

Last synced: over 1 year ago
JSON representation

Statamic Country dropdown with ISO 3166 options values

Awesome Lists containing this project

README

          

# Statamic Country (ISO 639-1) Dropdown Fieldtype

![Statamic 3.0+](https://img.shields.io/badge/Statamic-3.0+-FF269E?style=for-the-badge&link=https://statamic.com)
> The simplest way to list every country as a selectable dropdown 🤘

## Features
- Display a select field with **every ISO 639-1 language**. _tl;dr: The two-letter code._
- Built-in **localization** in **70+** languages.
- Set a **placeholder**.
- Allow **multiple selections**.
- Set a **maximum number of selectable items**.
- Enable **searching** through possible options.

## Getting Started

We have made things easy for you start. Here is the three steps your need to follow:

1. **Install the addon**
Simply run `composer require parfaitementweb/statamic-country-fieldtype`
You also can follow [official Statamic help guide](https://statamic.dev/addons#installing-addons)

2. **Add the Country fieldtype.**
Choose your display and hanlde values.
Customize the behavior using our various fieldtypes settings.

3. **Enjoy.**

## Built-in translations
Country values are **automaticaly** displayed in current user locale, based on the current `locale` from the `App::getLocale()` value.

The addon supports _Afrikaans, Amharic, Arabic, Azerbaijani, Belorussian, Bulgarian, Bengali, Bosnian, Catalan, Czech, Danish, German, English, Spanish, Estonian, Persian, Finnish, French, Galician, Greek, Hausa, Hebrew, Hindi, Croatian, Hungarian, Armenian, Icelandic, Italian, Indonesian, Japanese, Georgian, Kazakh, Khmer, Korean, Kurdish, Kyrgyz, Lithuanian, Latvian, Macedonian, Malayalam, Mongolian, Malay, Norwegian Bokmål, Dutch, Norwegian Nynorsk, Norwegian, Polish, Pashto, Portuguese, Romanian, Russian, Sindhi, Slovak, Slovene, Somali, Albanian, Serbian, Swedish, Tamil, Tajik, Thai, Turkish, Tatar, Uyghur, Ukrainian, Urdu, Uzbek, Chinese, Vietnamese_.

## What does your addon look like?

![Statamic Language Country Dropdown](https://parfaitementweb.com/statamic/statamic-country-fieldtype/fieldtype-preview.png)

![Statamic Language Country Options](https://parfaitementweb.com/statamic/statamic-country-fieldtype/fieldtype-locale.png)

![Statamic Language Country Options](https://parfaitementweb.com/statamic/statamic-country-fieldtype/fieldtype-options.png)

## Changelog

**V1.0.0**
🚀 Launching this awesome fieldtype to every country.