wp-languages / wp-languages.github.io

Composer repository for WordPress translation files
https://wp-languages.github.io
MIT License
57 stars 11 forks source link

Locales are not published #11

Closed tristanbes closed 5 years ago

tristanbes commented 5 years ago

Hello,

Here's my setup:

  "repositories": [
    {
      "type": "composer",
      "url": "https://wpackagist.org"
    },
    {
      "type": "composer",
      "url": "https://wp-languages.github.io"
    },
  ],
  "require": {
    "koodimonni-language/fr_fr": "^5.0"
  },
  "extra": {
    "installer-paths": {
      "web/app/mu-plugins/{$name}/": ["type:wordpress-muplugin"],
      "web/app/plugins/{$name}/": ["type:wordpress-plugin"],
      "web/app/themes/{$name}/": ["type:wordpress-theme"],
      "web/app/languages/": ["vendor:koodimonni-language"],
      "web/app/languages/plugins/": ["vendor:koodimonni-plugin-language"],
      "web/app/languages/themes/": ["vendor:koodimonni-theme-language"]
    },
    "wordpress-install-dir": "web/wp",
  }

Complete composer.json can be found here: https://gist.github.com/tristanbes/a857834d3ae2d599d7ad1e3c6867545c

When I followed the "how to" steps for Bedrock, i had the .mo and .po languages for FR that were in languages but not on the production server (it's a PaaS, so each time, the hard drive is clean, it takes the git repository and calls composer install)

So I tried to delete the app/languages/* and call composer install, and yes, nothing is published again on this folder, which remains empty.

Am I doing something wrong ? Did I miss something ?

Thanks.

tristanbes commented 5 years ago

Ok, my bad "installer-paths" instead of "dropin-paths" were used.