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!

1 Answer 1

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__
);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.