Knowit.Umbraco.Dictionoid 0.1.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package Knowit.Umbraco.Dictionoid --version 0.1.3                
NuGet\Install-Package Knowit.Umbraco.Dictionoid -Version 0.1.3                
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="Knowit.Umbraco.Dictionoid" Version="0.1.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Knowit.Umbraco.Dictionoid --version 0.1.3                
#r "nuget: Knowit.Umbraco.Dictionoid, 0.1.3"                
#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.
// Install Knowit.Umbraco.Dictionoid as a Cake Addin
#addin nuget:?package=Knowit.Umbraco.Dictionoid&version=0.1.3

// Install Knowit.Umbraco.Dictionoid as a Cake Tool
#tool nuget:?package=Knowit.Umbraco.Dictionoid&version=0.1.3                

Knowit.Umbraco.Dictionoid

Dictionoid integrates OpenAI's language capabilities with Umbraco, streamlining the translation process within the platform. By leveraging OpenAI's Completion API and requiring an API key for access, Dictionoid simplifies the management of multilingual content for developers and content managers. Particularly useful for projects requiring localization in multiple languages, it significantly reduces the manual effort of creating translations, benefiting projects that commonly pair local languages with English.

Features

  • Automatic Translations: With a simple button click, Dictionoid translates your text into all languages set up in Umbraco, streamlining content localization.
  • Translation History: Track changes to your dictionary items, maintaining a record of modifications over time for better version control.
  • Code-First Dictionary Generation: For developers, Dictionoid offers the ability to generate dictionary items directly from code using @await Umbraco.Dictionoid("My dictionary item", "my.key"), eliminating the need to manually create items in the back office.
  • Source Code Integration: Seamlessly integrates with your Umbraco projects, offering features like dictionary item tracking and source code cleanup post-item creation.
  • Opt-in Features: Additional developer-centric functionalities such as tracking history, code cleanup, and code-first generation are opt-in to ensure they are used judiciously, particularly outside production environments.

Setup / Configuration

To get started, include the minimum required configuration in your appsettings.json:

"Knowit.Umbraco.Dictionoid": {
  "ApiKey": "a valid OpenAI API key",
}

For developers seeking to leverage advanced features, the full configuration is as follows:

"Knowit.Umbraco.Dictionoid": {
  "ApiKey": "a valid OpenAI API key",
  "CreateOnNotExist": true,
  "CleanupAfterCreate": false,
  "CleanupInBackoffice": true,
  "TrackHistory":  true
}

Note: Features like CreateOnNotExist, CleanupAfterCreate, and CleanupInBackoffice are powerful tools that modify source code and should be used with caution, ideally outside of production environments, to avoid unintended alterations.

Code-First Dictionary Items

The CreateOnNotExist feature facilitates a code-first approach, allowing developers to define dictionary items within their codebase. If a specified key does not exist, Dictionoid auto-generates it and populates translations using OpenAI, streamlining the development workflow.

License

Dictionoid is made available under the MIT License, which permits broad usage, including modification, distribution, and private or commercial use, while requiring only attribution and copyright notice retention.

As Dictionoid is in its early stages, users should anticipate the possibility of encountering bugs. We welcome feedback and contributions to enhance its reliability and feature set.

Acknowledgment for OpenAI-API-dotnet

This project utilizes the OpenAI-API-dotnet library, which is dedicated to the public domain under the CC0 1.0 Universal (CC0 1.0) Public Domain Dedication. We appreciate the contributions made by the developers of OpenAI-API-dotnet.

More information about the OpenAI-API-dotnet library can be found at: https://github.com/OkGoDoIt/OpenAI-API-dotnet

More information about the CC0 1.0 license is available at: https://creativecommons.org/publicdomain/zero/1.0/

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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. 
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.5.1 54 5/2/2024
0.5.0 87 4/30/2024
0.3.0 104 4/12/2024
0.2.2 109 3/11/2024
0.1.3 99 3/8/2024