Simple CLI to (add, delete, update, create) i18n translation file πŸ”€ πŸ¦€

Overview

Wagmi, Other currencies

Inrs

Simple CLI to (add, delete, update, create) i18n translation file

License Rust
version issues-open issues-closed
Continuous Integration
Release
Copyright (C) 2020-2022  TheAwiteb
https://github.com/TheAwiteb/inrs

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

Requirements

Features

  • Write in Rust πŸ¦€ .
  • Sort translations by key (in json file).
  • Add the missing keys with an empty translation (in json file).
  • Create new language with create command.
  • Add/Update translation on specified language with update command.
  • Delete translation by key in all languages with delete trans command.
  • Delete language from i18n directory with delete lang command.

Disadvantages

  • Only support json files

Install

With Cargo

cargo install inrs
inrs --version

From source

# Clone the repo
git clone https://github.com/theawiteb/inrs.git
# Change directory to it
cd inrs
# Build it with cargo
cargo build --release
# Move the binary to `/usr/bin` (Unix like system) (need permission to move in `/usr/bin`)
# You can change binary directory to `~/.cargo/bin` if its exists and its in `$PATH`
sudo mv ./target/release/inrs /usr/bin/inrs
# Print the version
inrs --version

Using

USAGE:
    inrs [OPTIONS] <SUBCOMMAND>

OPTIONS:
    -h, --help           Print help information
    -p, --path <PATH>    Path of i18n directory πŸ“‚ [default: i18n]
    -V, --version        Print version information

SUBCOMMANDS:
    create    Create new language file πŸ”€
    delete    Delete translation/language 🚧
    help      Print this message or the help of the given subcommand(s)
    update    Add/Update translation πŸ†•

Images

Left Right

License

GNU General Public License version 3 of the license for more see https://www.gnu.org/licenses/

You might also like...
Add CLI & form interface to your program
Add CLI & form interface to your program

Add CLI & form interface to your program

A CLI tool you can pipe code and then ask for changes, add documentation, etc, using the OpenAI API.
A CLI tool you can pipe code and then ask for changes, add documentation, etc, using the OpenAI API.

AiBro This is your own little coding bro, immersed in the world of AI, crypto, and all other types of over hyped tech trends. You can pipe it code and

The official CLI for FlakeHub: search for flakes, and add new inputs to your Nix flake.

fh, the official FlakeHub CLI fh is a scrappy CLI for searching FlakeHub and adding new inputs to your Nix flakes. Usage Using fh from FlakeHub: nix s

Plex webhook service to automatically update your Anilist watching list.

anifunnel Plex webhook service to automatically update your Anilist watching list. Description anifunnel is a web server that will consume incoming Pl

Update Twitter profile with a meter showing how close you are to code burnout.

WakaTime Code Burnout Meter in Twitter Profile Inspired by trash's Twitter profile, this repo adds a burnout meter to your Twitter profile. It uses Wa

Generate commands that add node_modules/.bin to PATH

npx-bin-helper Generate commands that add node_modules/.bin to PATH. Supports Linux, MacOS and Windows. Installation cargo install npx-bin-helper Usag

This is a placeholder repository for Ludum Dare 52. We'll add more soon!

Ludum Dare 52 This is a placeholder repository for Ludum Dare 52. How to play TBD Developing Only Rust (edition 2021) is required to develop and build

Install a package with e.g. `hdn add pkgs.hello`
Install a package with e.g. `hdn add pkgs.hello`

hdn: utility for updating home.nix Home Manager is great, but it's tedious to run home-manager edit, add your package to the file, and run home-manage

dlfile is a very simple, straightforward CLI to download a file

dlfile dlfile is a very simple, straightforward CLI to download a file, except it... Only downloads over HTTPS Requires TLS 1.2 or higher Executes in

Comments
  • πŸš€: `0.1.0-pre.1`

    πŸš€: `0.1.0-pre.1`

    • ✍:: Add copyright to files
    • ✨: Add default value for path
    • ✍:: Update README.md
    • ✨: Improve errors
    • ✨: Add new error (for delete command)
    • ✨: Improve delete command
    • 🧹: Rust clippy
    • βš™: Rename Release workflow to Release/Publish
    • βš™: Add πŸ’‘ improvements label to categories
    • ✨: Add tests
    • ✨: Delete language function
    • ✨: Add DeleteFileError error
    • ✨: Add subcommands of delete command
    • ✨: Update delete function name to delete_key
    • πŸ§ͺ: Add delete_language test
    • 🧹: Rust clippy
    • 🧹: Improve errors name
    • βš™: Add issue template
    • πŸš€: Bump version to 0.1.0-pre.1
    opened by TheAwiteb 0
  • `list` command

    `list` command

    • βš™: Add comfy-table to dependencies
    • ✨: Add ThereIsNoTranslations to errors
    • ✨: Add to_table to Translations and Language
    • ✨: Add list_translations function to list translation
    • ✨: Add list command to subcommands
    • ✨: list command
    πŸ§ͺ test πŸš€ feature 
    opened by TheAwiteb 0
Releases(v0.1.0)
Owner
TheAwiteb
Some programmer. vec!['πŸ¦€','🐍'].
TheAwiteb
Rust translation of biryani-cli by Dev Ashar

Veg Biryani This is a cheap remake of the awesome project by Dev Ashar in Rust. The original project's description: Biryani is a tool created to manag

Suryansh 2 Dec 10, 2022
A simple CLI tool to create python project file structure, written in Rust

Ezpie Create python projects blazingly fast What Ezpie can do? It can create a python project directory What kind of directory can Ezpie create? For c

Faseeh 3 Sep 29, 2023
Rust File Management CLI is a command-line tool written in Rust that provides essential file management functionalities. Whether you're working with files or directories, this tool simplifies common file operations with ease.

Rust FileOps Rust File Management CLI is a command-line tool written in Rust that provides essential file management functionalities. Whether you're w

Harikesh Ranjan Sinha 5 May 2, 2024
A simple CLI utility to add rounded borders, padding, and shadows to images.

shadower a simple command-line utility to add rounded corners and shadows to images Installation From AUR paru -S shadower-git From source cargo build

MichaΕ‚ 5 Mar 16, 2023
Update informer for CLI applications written in Rust πŸ¦€

Update-informer Update informer for CLI applications written in Rust ?? Usage Add to Cargo.toml: [dependencies] update-notifier = "0.1.0" To check the

Grachev Mikhail 166 Dec 18, 2022
⚑ A Blazing fast alternative to the stock windows folder delete function!

Turbo Delete A blazing fast alternative to the default Windows delete. Turbodelete is a blazing fast alternative to the default Windows delete functio

Tejas Ravishankar 165 Dec 4, 2022
Delete useless GitHub repositories easily.

delete-unused-repo Delete useless GitHub repositories easily. Demo del-unused-repo.mp4 Usage Warning You are responsible for your own actions, this is

null 2 Aug 9, 2022
Filter, Sort & Delete Duplicate Files Recursively

Deduplicator Find, Sort, Filter & Delete duplicate files Usage Usage: deduplicator [OPTIONS] [scan_dir_path] Arguments: [scan_dir_path] Run Dedupl

Sreedev Kodichath 108 Jan 27, 2023
Add path effects to open glyphs in a UFO file

ufostroker Add path effects to open contours in a UFO file Given a glyph with open contours: You can apply a noodle effect: ufostroker -i Open.ufo -o

Simon Cozens 5 Jun 28, 2021
Translation support for mdbook. The plugins here give you a structured way to maintain a translated book.

Gettext Translation Support for mdbook The plugins here makes it easy to translate documentation written in mdbook into multiple languages. Support fo

Google 19 Apr 5, 2023