Rokeeru 0.1.1

dotnet add package Rokeeru --version 0.1.1
                    
NuGet\Install-Package Rokeeru -Version 0.1.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Rokeeru" Version="0.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Rokeeru" Version="0.1.1" />
                    
Directory.Packages.props
<PackageReference Include="Rokeeru" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Rokeeru --version 0.1.1
                    
#r "nuget: Rokeeru, 0.1.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Rokeeru@0.1.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Rokeeru&version=0.1.1
                    
Install as a Cake Addin
#tool nuget:?package=Rokeeru&version=0.1.1
                    
Install as a Cake Tool

rokeeru

多言語ロケールリソース自動検出・パース・キャッシュ管理エンジン (C# / .NET) / Multi-language Locale Resource Discovery, Parsing, and Caching Engine for C# / .NET

License: MIT .NET C#

日本語 | English


日本語

概要

rokeeru は、C# および .NET 環境において、ディレクトリ内の多言語ロケールファイル(JSON, YAML, TOML)を自動検出・ロード・キャッシュし、未翻訳キーのフォールバック補填を提供するライブラリです。 Rust で記述されたコアエンジンを P/Invoke ネイティブ相互運用を介して呼び出すことで、スレッドセーフで高速なリソース管理を提供します。

インストール

.NET CLI を使用して NuGet パッケージを追加します。

dotnet add package Rokeeru

または Package Manager を使用します。

Install-Package Rokeeru

使い方

using Rokeeru;

// ディレクトリパスとデフォルト言語(フォールバック用)を指定して初期化
var loader = new RokeeruLoader("./locales", "en");

// ロケールファイルを読み込み
loader.Load();

// 利用可能なロケールコード一覧を取得
string[] languages = loader.Languages();
Console.WriteLine(string.Join(", ", languages)); // en, ja, fr

// 指定ロケールの翻訳データ(JSON文字列)を取得
string jaJson = loader.Get("ja");
Console.WriteLine(jaJson);

LICENSE

このプロジェクトのライセンスは MIT ライセンスです。詳しくは LICENSE.MIT をお読みください。また、サードパーティライセンスは NOTICE.md に表記してあります。


English

Overview

rokeeru is a library for C# and .NET environments that automatically discovers, loads, caches, and provides key-level fallback for multi-language locale files (JSON, YAML, TOML) in a directory. Powered by a Rust core engine via P/Invoke native interop, it delivers high-performance, thread-safe resource management.

Installation

Add the NuGet package via .NET CLI:

dotnet add package Rokeeru

Or using Package Manager:

Install-Package Rokeeru

Usage

using Rokeeru;

// Initialize with locales directory path and default fallback language
var loader = new RokeeruLoader("./locales", "en");

// Load locale files
loader.Load();

// Get list of available locale codes
string[] languages = loader.Languages();
Console.WriteLine(string.Join(", ", languages)); // en, ja, fr

// Retrieve parsed locale data for a specific language
string jaJson = loader.Get("ja");
Console.WriteLine(jaJson);

LICENSE

This project is licensed under the MIT License. See LICENSE.MIT for details. Third-party licenses are documented in NOTICE.md.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.1 32 7/25/2026