Polylang integration – necessary Angular changes

  • Posted in : Empathy
  • Iulian Olteanu
    Participant

    Hello,

    My use case is the following:

    1) user first enters the website, lands on the home page and is presented with a language picker
    2) based on that choice, all following content will be presented in one language

    When using Polylang, you can translate any page .
    All pages will look like this:
    <domain>/languages/<language code>/<page>

    If the site’s default language is US English, then the path to page A will be:
    <domain>/languages/en_US/pageA

    Now, the site language will be changed to another language, say Romanian. So the path to the same page A (the translated version of it) will be:
    <domain>/languages/ro_RO/pageA

    I need to know where is the hook for modifying the angular controller in charge of the routes (or if there is another way to do it, that would be even better) so I can modify it in order to work with the new paths.

    Thank you.

    serkan
    Moderator

    Hi, your problem is related to 3rd party plugin. And we recommend you to ask the problem on the plugin’s support page for the solution.
    https://wordpress.org/support/plugin/polylang
    Thanks

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register