Drush Language Commands
Categories
Component ID
1047604
Component name
Drush Language Commands
Component type
module
Maintenance status
Development status
Component security advisory coverage
covered
Downloads
751149
Component created
Component changed
Component body
Drupal 8 Version
The 8.x-dev version currently is undergoing a massive streamlining in the translations-export and translaions-import commands to eventually move this component to core (#1820542: Make customized translations deployable). Please check on updates for syntax changes. If you want to track this or help, see #2922656: Roadmap to stable D8 release.
Overview
Drush commands allowing languages to be added, switched, enabled, disabled, imported, exported and update prefix from the commandline. This module only provides drush commands, so you will see no functionality in the UI.
Usage
- drush language-add <langcode>
- Add and import a new language definition.
- drush language-enable <langcode>
- Enable an existing language.
- drush language-disable <langcode>
- Disable an enabled language.
- drush language-default <langcode>
- Assign an enabled language as default.
- drush language-prefix <langcode> <prefix>
- update language prefix
- drush language-info
- Print a list with enabled locale groups.
- drush language-import <langcode> <path> [--groups=<text-group>,<text-group>] [--replace]
- Import translations to one or more locale groups.
- drush language-export <langcode> <path> [--groups=<text-group>,<text-group>] [--replace] [--sort] [--filter]
- Export translations from one or more locale groups.
- drush language-refresh [--replace]
- Refresh translations from one or more locale groups.
Use $ drush <command> --help for more information.
Installation
Installation using Drush is as easy as:
drush dl drush_language
Requirements
In order to use Drush Language Commands you'll need Drush and the core module Locale.
Similar projects
- Localization update
- Enables site-admins to update translations (automatically or on demand) and provides some Drush integration as well.
