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

https://github.com/parfaitementweb/statamic-language-iso639-fieldtype

Statamic fieldtype to select a language (ISO 639) in a dropdown
https://github.com/parfaitementweb/statamic-language-iso639-fieldtype

Last synced: over 1 year ago
JSON representation

Statamic fieldtype to select a language (ISO 639) in a dropdown

Awesome Lists containing this project

README

          

# Statamic Language (ISO 639) 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 available language as a selectable dropdown 🤘

## Features
- Display a select field with **every ISO 639 language**.
- Built-in localization in 22 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**
This can be achieve by downloading our latest release and configuring the package as a path repository in your `composer.json` file.

2. **Add the Language ISO 639 select fieldtype.**
Choose your display and hanlde values.
Customize the behavior using our various fieldtypes settings.

3. **Enjoy.**

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

The addon supports _Breton, Czech, Danish, German, English, Spanish, Finnish, French, Hungarian, Islandic, Italian, Japanese, Lithuanian, Latvian, Dutch, Norwegian, Polish, Portuguese, Romanian, Russian, Swedish, Chinese_.

## What does your addon look like?

![Statamic Language Selector Dropdown](https://parfaitementweb.com/statamic/statamic-language-iso639-fieldtype/fieldtype-preview.png)

![Statamic Language Selector Options](https://parfaitementweb.com/statamic/statamic-language-iso639-fieldtype/fieldtype-options.png)

## Changelog
V1.0.1
📚 Language values are now displayed in current user locale.

V1.0.0
🚀 Launching this awesome fieldtype to the world.