i18next-cli: init at 1.20.4

Signed-off-by: Patrizio Bekerle <patrizio@bekerle.com>
This commit is contained in:
Patrizio Bekerle
2025-11-05 11:25:31 +01:00
parent 8172e83ebb
commit b68a04f264
2 changed files with 8834 additions and 0 deletions
File diff suppressed because it is too large Load Diff
+38
View File
@@ -0,0 +1,38 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
nix-update-script,
}:
buildNpmPackage rec {
pname = "i18next-cli";
version = "1.20.4";
src = fetchFromGitHub {
owner = "i18next";
repo = "i18next-cli";
tag = "v${version}";
hash = "sha256-jidpGVdyi7slFAY1nwbhFx8QCZQ+VKgWybpQudY4zIM=";
};
# NOTE: Generating lock-file
# npm install --package-lock-only
postPatch = ''
cp ${./package-lock.json} package-lock.json
'';
npmDepsHash = "sha256-9WsQEDeVsNl4XRN5CPbqdHZihPJmNT3LaEmuTOksyBo=";
passthru.updateScript = nix-update-script {
extraArgs = [ "--generate-lockfile" ];
};
meta = {
description = "A unified, high-performance i18next CLI";
changelog = "https://github.com/i18next/i18next-cli/releases/tag/v${version}";
homepage = "https://www.locize.com/blog/i18next-cli";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.pbek ];
mainProgram = "i18next-cli";
};
}