Skip to content

Commit

Permalink
Convert CRLF -> LF for localization files
Browse files Browse the repository at this point in the history
  • Loading branch information
cheese3660 committed Sep 1, 2023
1 parent 3874301 commit 1a66353
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SpaceWarp.Core/InternalUtilities/AssetHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ internal static void LoadLocalizationFromFolder(string folder)
foreach (var csvFile in info.GetFiles("*.csv"))
{
languageSourceData ??= new LanguageSourceData();
var csvData = File.ReadAllText(csvFile.FullName);
var csvData = File.ReadAllText(csvFile.FullName).Replace("\r\n", "\n");
languageSourceData.Import_CSV("", csvData, eSpreadsheetUpdateMode.AddNewTerms);
}

foreach (var i2CsvFile in info.GetFiles("*.i2csv"))
{
languageSourceData ??= new LanguageSourceData();
var i2CsvData = File.ReadAllText(i2CsvFile.FullName);
var i2CsvData = File.ReadAllText(i2CsvFile.FullName).Replace("\r\n", "\n");
languageSourceData.Import_I2CSV("", i2CsvData, eSpreadsheetUpdateMode.AddNewTerms);
}

Expand Down

0 comments on commit 1a66353

Please sign in to comment.