.NET

Verba.Translations is a single NuGet package: it hooks into dotnet build to sync your resource files, and it can update texts at runtime (OTA).

1. Install

dotnet add package Verba.Translations

2. verba.json next to the .csproj (committed)

{ "project": "your-project-slug" }

Locales come from Verba. If Resources/ already contains a neutral .resx (for example Localization.resx), the package writes .resx files with the same base name; otherwise it writes Strings.<locale>.json.

3. Tokens

environment file (not committed) appsettings
read VERBA_TOKEN .verba-token "Verba": { "Token": "…" }
write VERBA_WRITE_TOKEN .verba-write-token "Verba": { "WriteToken": "…" }

4. Build

dotnet build

With a write token every build pushes first (keys that exist only in your files are created in Verba; nothing in Verba is overwritten), then fetches. Push only: dotnet build -t:VerbaPush. Disable fetching once: dotnet build -p:VerbaFetchEnabled=false.

5. Over-the-air updates (optional)

builder.Services.AddVerbaOta(builder.Configuration.GetSection("Verba"));

// in your text lookup — Verba first, compiled resource as fallback
VerbaOta.Get(key, culture) ?? ResourceManager.GetString(key, culture) ?? key

A background service refreshes the texts every minute with conditional requests; lookups are in-memory. If Verba is unreachable, the last good texts stay in place.

© 2026 Verba