Localazy.Sdk 0.0.2

dotnet add package Localazy.Sdk --version 0.0.2
NuGet\Install-Package Localazy.Sdk -Version 0.0.2
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="Localazy.Sdk" Version="0.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Localazy.Sdk --version 0.0.2
#r "nuget: Localazy.Sdk, 0.0.2"
#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 Localazy.Sdk as a Cake Addin
#addin nuget:?package=Localazy.Sdk&version=0.0.2

// Install Localazy.Sdk as a Cake Tool
#tool nuget:?package=Localazy.Sdk&version=0.0.2

Localazy C# SDK

This is an unofficial SDK for integrating with Localazy, a cloud-based localization platform. This SDK simplifies the process of managing and fetching translations for your C# projects.

Installation

You can install the Localazy SDK using NuGet. Run the following in the console

dotnet add package Localazy.Sdk 

Setup

To get started with the Localazy SDK, follow these steps:

  1. Obtain API Key:
    You can obtain your project token at https://localazy.com/developer/tokens

  2. Initialize the SDK:
    In your application, initialize the Localazy SDK by providing the API key:

using Localazy

services.AddLocalazySdk("YOUR_API_KEY");

Replace YOUR_API_KEY with your actual Localazy API key.

Use Case Examples

Below are some use case examples to demonstrate how to use the Localazy SDK in your C# project.
You can customize and expand upon these examples based on your specific needs.

Example 1: Fetching All Files

using Localazy;

const string ProjectId = "_a1234567890123456789";

var files = await localazyService.ListFilesInProject(ProjectId);
Console.WriteLine($"Fetched {files.Count} files");

Example 2: Fetching translations for a file

using Localazy;

const string ProjectId = "_a1234567890123456789";
const string FieId = "_a1234567890123456789";

var content = await localazyService.ListFileContent(ProjectId, FieId, "en");
Console.WriteLine($"Fetched {content.Keys.Count} messages");

API Documentation

For more details on Localazy and its API, refer to the Official Localazy API Documentation.
You can find it here: https://localazy.com/docs/api/

Contribution

Feel free to contribute to this project by submitting issues or pull requests. Your contributions are highly appreciated!

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 was computed.  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.0.2 339 11/29/2023
0.0.1 120 11/19/2023