Rokeeru 0.1.1
dotnet add package Rokeeru --version 0.1.1
NuGet\Install-Package Rokeeru -Version 0.1.1
<PackageReference Include="Rokeeru" Version="0.1.1" />
<PackageVersion Include="Rokeeru" Version="0.1.1" />
<PackageReference Include="Rokeeru" />
paket add Rokeeru --version 0.1.1
#r "nuget: Rokeeru, 0.1.1"
#:package Rokeeru@0.1.1
#addin nuget:?package=Rokeeru&version=0.1.1
#tool nuget:?package=Rokeeru&version=0.1.1
rokeeru
多言語ロケールリソース自動検出・パース・キャッシュ管理エンジン (C# / .NET) / Multi-language Locale Resource Discovery, Parsing, and Caching Engine for C# / .NET
日本語
概要
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 | Versions 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. |
-
net8.0
- System.Text.Json (>= 8.0.5)
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 |