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.
Project information
- Maintenance fixes only
Considered feature-complete by its maintainers. - Module categories: Import and Export, Multilingual
- 10,258 sites report using this module
- Created by the greenman on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
D10 Compatibility
Development version: 8.x-1.x-dev updated 13 Dec 2022 at 18:31 UTC
Pre-release version: 7.x-1.6-rc3 released 28 Jun 2018 at 17:53 UTC
Development version: 7.x-1.x-dev updated 28 Jun 2018 at 17:48 UTC