doc/dev/plugins/langswitcher/blueprints.yaml

62 lines
1.9 KiB
YAML
Raw Normal View History

name: LangSwitcher
version: 1.5.0
description: LangSwitcher is a [Grav](http://github.com/getgrav/grav) plugin that provides native language text links to switch between [multiple languages](http://learn.getgrav.org/content/multi-language) in Grav **v0.9.30** or greater.
icon: globe
author:
name: Team Grav
email: devs@getgrav.org
url: http://getgrav.org
homepage: https://github.com/getgrav/grav-plugin-langswitcher
keywords: mulitlang, multilanguage, translation, switcher
bugs: https://github.com/getgrav/grav-plugin-langswitcher/issues
license: MIT
dependencies:
- { name: grav, version: '>=1.6.0' }
form:
validation: strict
fields:
enabled:
type: toggle
label: PLUGIN_ADMIN.PLUGIN_STATUS
highlight: 1
default: 1
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool
built_in_css:
type: toggle
label: PLUGIN_LANGSWITCHER.BUILTIN_CSS
help: PLUGIN_LANGSWITCHER.BUILTIN_CSS_HELP
highlight: 1
default: 1
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool
language_display:
type: select
size: small
label: PLUGIN_LANGSWITCHER.LANGUAGE_DISPLAY
help: PLUGIN_LANGSWITCHER.LANGUAGE_DISPLAY_HELP
default: long
options:
long: PLUGIN_LANGSWITCHER.LANGUAGE_DISPLAY_LONG
short: PLUGIN_LANGSWITCHER.LANGUAGE_DISPLAY_SHORT
untranslated_pages_behavior:
type: select
size: medium
label: PLUGIN_LANGSWITCHER.UNTRANSLATED_PAGES_BEHAVIOR
help: PLUGIN_LANGSWITCHER.UNTRANSLATED_PAGES_BEHAVIOR_HELP
default: none
options:
none: PLUGIN_LANGSWITCHER.UNTRANSLATED_PAGES_BEHAVIOR_OPTION_NONE
redirect: PLUGIN_LANGSWITCHER.UNTRANSLATED_PAGES_BEHAVIOR_OPTION_REDIRECT
hide: PLUGIN_LANGSWITCHER.UNTRANSLATED_PAGES_BEHAVIOR_OPTION_HIDE