Strategy.php 608 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Translation\Model\Js\Config\Source;
  7. use Magento\Translation\Model\Js\Config;
  8. class Strategy implements \Magento\Framework\Option\ArrayInterface
  9. {
  10. /**
  11. * {@inheritdoc}
  12. */
  13. public function toOptionArray()
  14. {
  15. return [
  16. ['label' => __('Dictionary (Translation on Storefront side)'), 'value' => Config::DICTIONARY_STRATEGY],
  17. ['label' => __('Embedded (Translation on Admin side)'), 'value' => Config::EMBEDDED_STRATEGY]
  18. ];
  19. }
  20. }