rust-i18n | A better and simply I18n crate for Rust

 by   longbridgeapp Rust Version: v1.2.1 License: MIT

kandi X-RAY | rust-i18n Summary

kandi X-RAY | rust-i18n Summary

rust-i18n is a Rust library. rust-i18n has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Rust I18n is a crate for loading localized text from a set of YAML mapping files. The mappings are converted into data readable by Rust programs at compile time, and then localized text can be loaded by simply calling the provided t! macro. The API of this crate is inspired by ruby-i18n and Rails I18n.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              rust-i18n has a low active ecosystem.
              It has 129 star(s) with 14 fork(s). There are 10 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 9 open issues and 11 have been closed. On average issues are closed in 77 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of rust-i18n is v1.2.1

            kandi-Quality Quality

              rust-i18n has 0 bugs and 0 code smells.

            kandi-Security Security

              rust-i18n has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              rust-i18n code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              rust-i18n is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              rust-i18n releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of rust-i18n
            Get all kandi verified functions for this library.

            rust-i18n Key Features

            No Key Features are available at this moment for rust-i18n.

            rust-i18n Examples and Code Snippets

            Rust I18n,Usage
            Rustdot img1Lines of Code : 44dot img1License : Permissive (MIT)
            copy iconCopy
            [dependencies]
            lazy_static = "1.4.0"
            rust-i18n = "0"
            
            [package.metadata.i18n]
            # The available locales for your application, default: ["en"].
            # available-locales = ["en", "zh-CN"]
            
            # The default locale, default: "en".
            # default-locale = "en"
            
            # Path f  
            Rust I18n,Usage,Extract the untranslated texts
            Rustdot img2Lines of Code : 41dot img2License : Permissive (MIT)
            copy iconCopy
            $ cargo install rust-i18n
            # Now you have `cargo i18n` command
            
            $ cd your_project_root_directory
            $ cargo i18n
            
            Checking [en] and generating untranslated texts...
            Found 1 new texts need to translate.
            ----------------------------------------
            Writing to   
            Rust I18n,Usage,Loading Localized Strings in Rust
            Rustdot img3Lines of Code : 12dot img3License : Permissive (MIT)
            copy iconCopy
            use rust_i18n::t;
            
            t!("hello");
            // => "Hello world"
            
            t!("hello", locale = "zh-CN");
            // => "你好世界"
            
            t!("messages.hello", name = "world");
            // => "Hello, world"
            
            t!("messages.hello", locale = "zh-CN", name = "Jason");
            // => "你好, Jason"
              

            Community Discussions

            No Community Discussions are available at this moment for rust-i18n.Refer to stack overflow page for discussions.

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install rust-i18n

            Rust I18n also provided a cargo i18n command line tool help you process translations.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/longbridgeapp/rust-i18n.git

          • CLI

            gh repo clone longbridgeapp/rust-i18n

          • sshUrl

            git@github.com:longbridgeapp/rust-i18n.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular Rust Libraries

            996.ICU

            by 996icu

            deno

            by denoland

            rust

            by rust-lang

            alacritty

            by alacritty

            tauri

            by tauri-apps

            Try Top Libraries by longbridgeapp

            gorm-sharding

            by longbridgeappGo

            nested-set

            by longbridgeappGo

            autocorrect

            by longbridgeappGo

            openapi-sdk

            by longbridgeappRust

            ultra-table

            by longbridgeappGo