1

I have tried to solve translation problem in magento 2.1 how it was shown in thread: Magento2 translating Javascript (KO) template text

Now any page created in magento contains:

\Magento\Framework\Component\ComponentRegistrar::register(
    \Magento\Framework\Component\ComponentRegistrar::LANGUAGE,
    'latviski_lv_lv',
    __DIR__
);<!doctype html>
<html lang="lv-LV">
    <head >
        <script>
    var require = {
        "baseUrl": 

Of course also functionality in admin panel is not working anymore. I believe there is some mistake in registration.php shown in that sample.

Is there any possibility to unregister my translation or remoove that faulty code? Thanks in advance!

Fabian Schmengler
  • 65,791
  • 25
  • 187
  • 421
Andris
  • 11
  • 1

1 Answers1

1

Have you tried to add php mark at document begining in your registration.php?

<?php

    \Magento\Framework\Component\ComponentRegistrar::register(
    \Magento\Framework\Component\ComponentRegistrar::LANGUAGE,
    'latviski_lv_lv',
    __DIR__
);