unitysamples / LyraStarterGame /Build /Scripts /Automation /Localization /SmartlingLocalizationProvider_Sample.cs
Download LyraStarterGame/Build/Scripts/Automation/Localization/SmartlingLocalizationProvider_Sample.cs from Alexhas2/unitysamples: direct link, hf CLI and curl.
- Browser
- Download file 795 Bytes
-
https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Build/Scripts/Automation/Localization/SmartlingLocalizationProvider_Sample.cs
- Command line
-
hf download hf://datasets/Alexhas2/unitysamples/LyraStarterGame/Build/Scripts/Automation/Localization/SmartlingLocalizationProvider_Sample.cs
-
curl -L -o SmartlingLocalizationProvider_Sample.cs https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Build/Scripts/Automation/Localization/SmartlingLocalizationProvider_Sample.cs
795 Bytes
| // Copyright Epic Games, Inc. All Rights Reserved. | |
| using System; | |
| using System.Collections.Generic; | |
| using AutomationTool; | |
| using UnrealBuildTool; | |
| using EpicGames.SmartlingLocalization; | |
| public class SmartlingLocalizationProvider_Sample : SmartlingLocalizationProvider | |
| { | |
| public SmartlingLocalizationProvider_Sample (LocalizationProviderArgs InArgs) | |
| : base(InArgs) | |
| { | |
| Config.UserId = Command.ParseParamValue("SmartlingUserId"); | |
| Config.ProjectId = Command.ParseParamValue("SmartlingProjectId"); | |
| Config.UserSecret = Command.ParseParamValue("SmartlingAPISecret"); | |
| } | |
| public static string StaticGetLocalizationProviderId() | |
| { | |
| return "Smartling_Sample"; | |
| } | |
| public override string GetLocalizationProviderId() | |
| { | |
| return StaticGetLocalizationProviderId(); | |
| } | |
| } | |