MyNixOS website logo
option

services.wordpress.sites.<name>.languages

List of path(s) to respective language(s) which are copied from the 'languages' directory.

Declarations
Type
list of path
Default
[ ]
Example
[
  # Let's package the German language.
  # For other languages try to replace language and country code in the download URL with your desired one.
  # Reference https://translate.wordpress.org for available translations and
  # codes.
  (pkgs.stdenv.mkDerivation {
    name = "language-de";
    src = pkgs.fetchurl {
      url = "https://de.wordpress.org/wordpress-${pkgs.wordpress.version}-de_DE.tar.gz";
      # Name is required to invalidate the hash when wordpress is updated
      name = "wordpress-${pkgs.wordpress.version}-language-de";
      sha256 = "sha256-dlas0rXTSV4JAl8f/UyMbig57yURRYRhTMtJwF9g8h0=";
    };
    installPhase = "mkdir -p $out; cp -r ./wp-content/languages/* $out/";
  })
];