Skip to content
Snippets Groups Projects
Commit 58b10764 authored by Sergey Ivashchenko's avatar Sergey Ivashchenko
Browse files

MAGETWO-34363: Pull request processing

parent 585b8d96
No related merge requests found
......@@ -13,6 +13,11 @@ use Magento\Framework\App\Config\ScopeConfigInterface;
*/
class Config extends FrameworkJsConfig
{
/**
* Both translation strategies are disabled
*/
const NO_TRANSLATION = 'none';
/**
* Strategy when all js files are translated while publishing
*/
......
......@@ -15,6 +15,7 @@ class Strategy implements \Magento\Framework\Option\ArrayInterface
public function toOptionArray()
{
return [
['label' => __('None (Translation is disabled)'), 'value' => Config::NO_TRANSLATION],
['label' => __('Dictionary (Translation on frontend side)'), 'value' => Config::DICTIONARY_STRATEGY],
['label' => __('Embedded (Translation on backend side)'), 'value' => Config::EMBEDDED_STRATEGY]
];
......
......@@ -24,6 +24,7 @@ class StrategyTest extends \PHPUnit_Framework_TestCase
public function testToOptionArray()
{
$expected = [
['label' => __('None (Translation is disabled)'), 'value' => Config::NO_TRANSLATION],
['label' => 'Dictionary (Translation on frontend side)', 'value' => Config::DICTIONARY_STRATEGY],
['label' => 'Embedded (Translation on backend side)', 'value' => Config::EMBEDDED_STRATEGY]
];
......
......@@ -16,7 +16,7 @@
</invalid_caches>
</translate_inline>
<js>
<translate_strategy>dictionary</translate_strategy>
<translate_strategy>none</translate_strategy>
</js>
</dev>
</default>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment