Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

translated routes defaulting to Russian when default locale is en #227

Open
PaddyLock opened this issue Oct 5, 2018 · 0 comments
Open

Comments

@PaddyLock
Copy link

Hi, none of my translated routes appear in the generated url, apart from a couple of them which are using the Russian locale which is not my default. I don't understand what is going on. This happened since I upgraded to Symfony 4. My config is:

jms_translation:
    configs:
        app:
            dirs: ["%kernel.root_dir%", "%kernel.root_dir%/../src/"]
            output_dir: "%kernel.root_dir%/../translations/"
            ignored_domains: [FOSUserBundle]
            excluded_names: ["*TestCase.php", "*Test.php", "Alert.php", "Book.php", "Brand.php", "Category.php", "CategoryGroup.php", "Collection.php", "Content.php", "DiscountGroup.php", "Faq.php", "Form.php", "FormDiscount.php", "Latest.php", "Popular.php", "Post.php", "PostageMethod.php", "PostageRate.php", "PostageZone.php", "PostageZoneCountry.php", "Potency.php", "PotencyRange.php", "Product.php", "ProductGroup.php", "Scale.php", "Size.php", "SubCategory.php", "SubTopic.php", "Taxon.php", "Taxonomy.php", "Topic.php", "VatRate.php", "Document.php", "Download.php", "Email.php", "Testimonial.php", "Stock.php"]
            excluded_dirs: [cache, data, logs, Features, Tests, DataFixtures, Form/Admin, Controller/Admin]
            extractors: []
jms_i18n_routing:
    default_locale: en
    locales: "%languages%"
    strategy: prefix_except_default

translations are generated in translations/routes.cs.xliff etc

routing is in annotations.yaml

controllers:
    resource: ../../src/Controller/
    type: annotation
    options: { i18n: true }

actions have options={"utf8": true}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant