Skip to content

Latest commit

 

History

History

Sparc.Ibis

Nuget

The Ibis translation plugin, powered by Ibis, auto-translates your entire app or site for you into hundreds of languages using the Ibis engine.

With a one-line component Sparc.Ibis auto-translates everything inside the component to the user's language! Usage is as follows:

  1. Inside your platform project install the Sparc.Ibis Nuget package Nuget

  2. Add this line to your platform wwwroot/appsettings.json:

{ "IbisApi":  "https://ibis.chat" }

Ibis.chat is live, you can create your account now or you can use your own API

  1. Add the following to your Program.cs
using Sparc.Ibis;
//...
builder.Services.AddIbis();
  1. Wrap whatever you want to translate in
<IbisContent ChannelId="[the Ibis channel/room ID to post translations to]"></IbisContent>

That's it! No necessary JS to add either, because .NET 7 has introduced a new way to auto-embed JS modules from a Razor Class Library, which we're taking advantage of.

Check here an example of use in Ibis Project