Roots Discourse

Languages installed via wp-languages.github.io not selectable in wp admin

Trying to install a separate language for my new wp site using @Koodimonni instructions on wp-languages.github.io. Tried both the instructions on the page (e.g. dropping languages in htdocs/wp-content/languages) and what I figured would be the bedrock version:

    "dropin-paths": {
      "web/app/languages/": ["vendor:koodimonni-language"],
      "web/app/languages/plugins/": ["vendor:koodimonni-plugin-language"],
      "web/app/languages/themes/": ["vendor:koodimonni-theme-language"]
    }

However, no matter what I do the languages won’t show up in wordpress admin. Anyone got this working as of late?

I had to add a finalize-after deploy-hook for this:

# Hook for updating installed wordpress languages
---
- name: Update WP installed languages
  command: wp language core update
  args:
    chdir: "{{ deploy_helper.current_path }}"

I also added the languages folder as a shared folder in group_vars/all/main.yml:

project_shared_children:
  - path: web/app/uploads
    src: uploads
  - path: web/app/languages
    src: languages

This may also be interesting: