{"_id":"@bestcodetools/translation-cli","_rev":"5-f5ff4f3b0248adf08696c1c3b78dfceb","name":"@bestcodetools/translation-cli","dist-tags":{"latest":"1.1.2"},"versions":{"0.0.1":{"name":"@bestcodetools/translation-cli","version":"0.0.1","description":"Open the project folder in the shell/command prompt and run the following command:","publishConfig":{"access":"public"},"main":"index.js","scripts":{"test":"jest"},"bin":{"translation-cli":"bin/index.js","jt":"bin/index.js","tj":"bin/index.js","ntc":"bin/index.js","gtc":"bin/index.js"},"author":"","license":"ISC","devDependencies":{"@types/jest":"^29.5.1","@types/node":"^18.7.14","jest":"^29.5.0"},"_id":"@bestcodetools/translation-cli@0.0.1","_nodeVersion":"14.20.0","_npmVersion":"6.14.17","dist":{"integrity":"sha512-mkS2O2JLUoB/LfeHD74xmQ+cC32A4fVWReu2w3H5KA6RQSdWAnDhf4TMOwpP6J0g3pBYc63a0YTtchKbAB0M+g==","shasum":"8e6565f2d7edfb3fd0fcc7c592eb1e4b6b373235","tarball":"https://registry.npmjs.org/@bestcodetools/translation-cli/-/translation-cli-0.0.1.tgz","fileCount":6,"unpackedSize":4130,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBxuykav0uiX50IrZqW+PdvGsaXwV2U4KgVQ41AEK2OkAiEA0x6IPhxVeRDA9ToMuzRi5Ch9kLqbV/z19GiIxk2lZvQ="}]},"_npmUser":{"name":"kamikai","email":"kamikai@gmail.com"},"directories":{},"maintainers":[{"name":"kamikai","email":"kamikai@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/translation-cli_0.0.1_1686766252256_0.6834678215232404"},"_hasShrinkwrap":false},"0.0.2":{"name":"@bestcodetools/translation-cli","version":"0.0.2","description":"## Installation","publishConfig":{"access":"public"},"main":"index.js","scripts":{"test":"jest"},"bin":{"translation-cli":"bin/index.js","jt":"bin/index.js","tj":"bin/index.js","ntc":"bin/index.js","gtc":"bin/index.js"},"author":"","license":"ISC","devDependencies":{"@types/jest":"^29.5.1","@types/node":"^18.7.14","jest":"^29.5.0"},"_id":"@bestcodetools/translation-cli@0.0.2","_nodeVersion":"14.20.0","_npmVersion":"6.14.17","dist":{"integrity":"sha512-u9tl9P7zOKQlSOwYrJFA8orus2nmQhV5/Lo7rwxhQaGbut8XDPoT6ZfaKDCDhCTEV7RLIzxRuFuq4alpTk1Rqw==","shasum":"0d4c625405209e6a82039994e0c5c761a6763783","tarball":"https://registry.npmjs.org/@bestcodetools/translation-cli/-/translation-cli-0.0.2.tgz","fileCount":8,"unpackedSize":6762,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHEvsBI70f02PwdnXTj9Se5OHKaI6l8CrKbu06ZAJAGtAiAX7DMf+3HaBRUl37CcTomck0ttSuOUawG2cKv/dbYKvA=="}]},"_npmUser":{"name":"kamikai","email":"kamikai@gmail.com"},"directories":{},"maintainers":[{"name":"kamikai","email":"kamikai@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/translation-cli_0.0.2_1686830091976_0.21513436282774778"},"_hasShrinkwrap":false},"1.0.0":{"name":"@bestcodetools/translation-cli","version":"1.0.0","description":"A CLI tool for managing translation files in JSON format.","publishConfig":{"access":"public"},"main":"index.js","scripts":{"test":"jest"},"tags":["cli","json","translation","configuration","i18n","file-management"],"bin":{"translation-cli":"bin/index.js","set-translation":"bin/set-translation.js","get-translation":"bin/get-translation.js","jt":"bin/index.js","tj":"bin/index.js","ntc":"bin/index.js"},"author":"","license":"ISC","devDependencies":{"@types/jest":"^29.5.1","@types/node":"^18.7.14","jest":"^29.5.0"},"gitHead":"dfa409f98d5988e401b6d776610bf5ef27f3bc24","_id":"@bestcodetools/translation-cli@1.0.0","_nodeVersion":"14.20.0","_npmVersion":"6.14.17","dist":{"integrity":"sha512-50ricm4nGpxZ5qQbcR/PFI9vyR6knTVg1I3KsC2HzOKlGWJSDfMl6rWW0gWyY4WPshulovTIdOvY/LM8E5vaWw==","shasum":"ee851e11586d5869c40f6d843db4b77c9eae7567","tarball":"https://registry.npmjs.org/@bestcodetools/translation-cli/-/translation-cli-1.0.0.tgz","fileCount":12,"unpackedSize":14429,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAtpm+0NDwoSTinOTZVmgzpiK/I6vgljpP9YFfcv0TBlAiBSDLlyuFjbsqQWOVfiokqzddkNWO+Tgm156VTwp8u9GQ=="}]},"_npmUser":{"name":"kamikai","email":"kamikai@gmail.com"},"directories":{},"maintainers":[{"name":"kamikai","email":"kamikai@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/translation-cli_1.0.0_1691705095544_0.8535435050642768"},"_hasShrinkwrap":false},"1.1.0":{"name":"@bestcodetools/translation-cli","version":"1.1.0","description":"A CLI tool for managing translation files in JSON format.","publishConfig":{"access":"public"},"main":"index.js","scripts":{"test":"jest"},"tags":["cli","json","translation","configuration","i18n","file-management"],"bin":{"translation-cli":"bin/index.js","set-translation":"bin/set-translation.js","get-translation":"bin/get-translation.js","jt":"bin/index.js","tj":"bin/index.js","ntc":"bin/index.js"},"author":"","license":"ISC","devDependencies":{"@types/jest":"^29.5.1","@types/node":"^18.7.14","jest":"^29.5.0"},"gitHead":"b2e4d9a2fc5b76369230f289f8a8779aec851665","_id":"@bestcodetools/translation-cli@1.1.0","_nodeVersion":"14.20.0","_npmVersion":"6.14.17","dist":{"integrity":"sha512-BUvEVtoVd1e+DJ+nhUNHKHfEEjAhAbDiaRNv9m/CrwEkoUxh/VHTmelNnD3JWhKI1hmS0UN+fHERiV2em/2BEA==","shasum":"03d930c6a059c64a0c5bac89f3881f369cda01c0","tarball":"https://registry.npmjs.org/@bestcodetools/translation-cli/-/translation-cli-1.1.0.tgz","fileCount":14,"unpackedSize":18450,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDhvfQL/qGeWgXzuEwaoH8cRtiGdZppkWjf0Pr3PNVaoQIgEX0oxXmyCIhvn6cVnpAgH+Tubtg4qXy5uX1xZQ9eM8E="}]},"_npmUser":{"name":"kamikai","email":"kamikai@gmail.com"},"directories":{},"maintainers":[{"name":"kamikai","email":"kamikai@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/translation-cli_1.1.0_1696730911716_0.7497885030611666"},"_hasShrinkwrap":false},"1.1.1":{"name":"@bestcodetools/translation-cli","version":"1.1.1","description":"A CLI tool for managing translation files in JSON format.","publishConfig":{"access":"public"},"main":"index.js","scripts":{"test":"jest"},"tags":["cli","json","translation","configuration","i18n","file-management"],"bin":{"translation-cli":"bin/index.js","set-translation":"bin/set-translation.js","get-translation":"bin/get-translation.js","jt":"bin/index.js","tj":"bin/index.js","ntc":"bin/index.js"},"author":"","license":"ISC","devDependencies":{"@types/jest":"^29.5.1","@types/node":"^18.7.14","jest":"^29.5.0"},"_id":"@bestcodetools/translation-cli@1.1.1","gitHead":"a2c73962f975db575a1a786534598cf04566ede7","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-a9TJkocjKPtkfYSA2wK6dcCKPJ5+SJvFbaylIyvB7uVJN6cd/JytalAkAMhFUW0zMkLz03tcj5X1ibeN5Ez6hA==","shasum":"030bb0fe5607a00687b36137c109c8f5b70487a1","tarball":"https://registry.npmjs.org/@bestcodetools/translation-cli/-/translation-cli-1.1.1.tgz","fileCount":14,"unpackedSize":20421,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDVogk37AuOlLfLjTTDXWKY8FRJXqXsJ0GMDY6c2/2VbgIgVTzLR7KNr3JsvOOUJDmByojfUlkKFRfDOSD43LqAEhs="}]},"_npmUser":{"name":"kamikai","email":"kamikai@gmail.com"},"directories":{},"maintainers":[{"name":"kamikai","email":"kamikai@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/translation-cli_1.1.1_1713450054900_0.6204520785755046"},"_hasShrinkwrap":false},"1.1.2":{"name":"@bestcodetools/translation-cli","version":"1.1.2","description":"A CLI tool for managing translation files in JSON format.","publishConfig":{"access":"public"},"main":"index.js","scripts":{"test":"jest"},"keywords":["cli","json","translation","configuration","i18n","file-management"],"tags":["cli","json","translation","configuration","i18n","file-management"],"bin":{"translation-cli":"bin/index.js","set-translation":"bin/set-translation.js","get-translation":"bin/get-translation.js","jt":"bin/index.js","tj":"bin/index.js","ntc":"bin/index.js"},"author":"","license":"ISC","devDependencies":{"@types/jest":"^29.5.1","@types/node":"^18.7.14","jest":"^29.5.0"},"_id":"@bestcodetools/translation-cli@1.1.2","gitHead":"3fc0af5954b53d741e36e7609c1c80b0a93cc3df","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-gJOraJJTbCztOqe6qpyBa8unSozdAY5vuscOa/pkl1YGev7+sOS/Dpew0Sr31wgc9G1yYZNia+XfZweVT8gdHw==","shasum":"43722016cf5b6dbd9b43711f2a4339be96042858","tarball":"https://registry.npmjs.org/@bestcodetools/translation-cli/-/translation-cli-1.1.2.tgz","fileCount":14,"unpackedSize":20539,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC04ofucuriTv+GQ4IBFIFmefLtOgJal/YpWV+i9BzFKgIgUfm1daDa/XfDH1YFLTAy4j3OrOHtPW2P1vQXq1f1aOw="}]},"_npmUser":{"name":"kamikai","email":"kamikai@gmail.com"},"directories":{},"maintainers":[{"name":"kamikai","email":"kamikai@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/translation-cli_1.1.2_1713450183876_0.21626086899904617"},"_hasShrinkwrap":false}},"time":{"created":"2023-06-14T18:10:52.187Z","0.0.1":"2023-06-14T18:10:52.428Z","modified":"2024-04-18T14:23:04.280Z","0.0.2":"2023-06-15T11:54:52.133Z","1.0.0":"2023-08-10T22:04:55.779Z","1.1.0":"2023-10-08T02:08:31.949Z","1.1.1":"2024-04-18T14:20:55.071Z","1.1.2":"2024-04-18T14:23:04.026Z"},"maintainers":[{"name":"kamikai","email":"kamikai@gmail.com"}],"description":"A CLI tool for managing translation files in JSON format.","license":"ISC","readme":"# @bestcodetools/translation-cli\n\nA CLI tool for managing translation files in JSON format.\n\n## Installation\n\nTo install the **translation-cli** globally, run the following command:\n\n```shell\nnpm install -g @bestcodetools/translation-cli\n```\n\n### If you're developing the project locally, you can link it with the following steps:\n1. Open the project folder in the shell/command prompt \n2. Run the following command:\n\n```shell\nnpm link\n```\n\n\n## Usage\n\nTo use the **translation-cli**, open your shell/command prompt and run the following command:\n\n### Set Translation\n```shell\n@bestcodetools/translation-cli set filename.json your.key.goes.here \"your translation\"\n```\n\n### Get Translation\n```shell\n@bestcodetools/translation-cli get filename.json your.key.goes.here\n```\n\n### Find Keys\n```shell\n@bestcodetools/translation-cli findKeys filename.json \"search term\" [options]\n```\n\nThis command searches for keys that match the provided \"search term\" in the specified JSON file.\n\nIf filename is '*', it searches in all files within the locale directory.\n\n* Options:\n  * --set-command: Generates a set command for each found key.\n  * --set-command-all: Generates set commands for each found key in all files within the locale directory.\n  * --with-values: Includes key-value pairs in the output.\n\nFor example, to generate set commands for each found key:\n\n```shell\n@bestcodetools/translation-cli findKeys filename.json \"search term\" --set-command\n```\n\nTo generate set commands for each found key in all files within the locale directory:\n\n```shell\n@bestcodetools/translation-cli findKeys filename.json \"search term\" --set-command-all\n```\n\nTo include key-value pairs in the output:\n\n```shell\n@bestcodetools/translation-cli findKeys filename.json \"search term\" --with-values\n```\n\nThese options provide flexibility in how you interact with the keys found during the search process.\n\n\n### You can also use various aliases instead of @bestcodetools/translation-cli for convenience:\n\n* **jt**: short for json-translation\n* **tj**: short for translate-json\n* **ntc**: short for node-translation-cli\n\n**NOTE**: The **set** and **get** commands have corresponding direct commands, such as **set-translation** and **get-translation**.\n\n### Direct commands usage\n\n* **set-translation** usage example:\n\n```shell\nset-translation filename.json your.key.goes.here \"your translation\"\n```\n\n\n* **get-translation** usage example:\n\n```shell\nget-translation filename.json your.key.goes.here\n```\n\n## Configuration file\n\nThe translation-cli supports a configuration file for setting default options. By default, the CLI looks for a configuration file named .`translation-cli.config.json` in the current directory. You can specify a different configuration file using the `--config-file` option.\n\nThe configuration file should be in JSON format and may include the following options:\n\n```json\n{\n  \"extension\": \".json\",\n  \"localeDir\": \".\"\n}\n```\n\n* **extension**: The file extension for the translation files.\n* **localeDir**: The directory where the translation files are located.\n\nAdditionally, you can use the `init` command to initialize a default configuration file with custom options. For example:\n\n```shell\n@bestcodetools/translation-cli init --locale-dir=my/translations/directory --extension=.txt\n```\n\nThis command initializes a default configuration file named `.translation-cli.config.json` with the specified `localeDir` and `extension` options. If no options are provided, the command will use the default values.\n\nPlease note that the configuration file is used to set default options and can be useful for streamlining your workflow when using the translation-cli.\n\n**NOTE**: if you use **--config-file=<filename>** option this file will be generated instead.\n\n<!-- For more details, visit the documentation at <not available yet>. -->\n","readmeFilename":"README.md","keywords":["cli","json","translation","configuration","i18n","file-management"]}