Created
March 23, 2017 16:50
-
-
Save Berdir/89ba61d3c110e791bbbffa6c0a29be86 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# How to force disable interface translation by overriding the locale lookup service to not be added to the translation manager | |
# settings.local.php: | |
$settings['container_yamls'][] = DRUPAL_ROOT . '/sites/default/services.local.yml'; | |
# services.local.yml (add this file to .gitignore): | |
services: | |
string_translator.locale.lookup: | |
class: Drupal\locale\LocaleTranslation | |
arguments: ['@locale.storage', '@cache.default', '@lock', '@config.factory', '@language_manager', '@request_stack'] | |
tags: | |
- { name: needs_destruction } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment