Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.
/ inrs Public archive

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

License

Notifications You must be signed in to change notification settings

TheAwiteb/inrs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

68 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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/