Skip to content

Commit

Permalink
Repeated languages removed
Browse files Browse the repository at this point in the history
  • Loading branch information
mrglaster authored Jan 29, 2023
1 parent 6bc8012 commit 9ebdc7e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions AMX-Plugins-Translator/modules/TextTranslator.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Linq;
using System.Threading.Tasks;
using GTranslate.Translators;
Expand All @@ -12,13 +12,13 @@ public class TextTranslator
public static string[] _allSupportedLanguages =
{
"en", "de", "sr", "tr", "fr", "sv", "da", "pl", "nl", "es", "bp", "cz", "fi", "bg", "ro", "hu", "lt", "sk",
"mk", "hr", "bs", "ru", "cn", "al", "ua", "lv", "hr", "bs"
"mk", "hr", "bs", "ru", "cn", "al", "ua", "lv"
};


public static string[] translatorCodes = {
"en", "de", "sr", "tr", "fr", "sv", "da", "pl", "nl", "es", "pt", "cs", "fi", "bg", "ro", "hu", "lt", "sk",
"mk", "hr", "bs", "ru", "zh", "sq", "uk", "lv", "hr", "bs"
"mk", "hr", "bs", "ru", "zh", "sq", "uk", "lv"
};

public static bool isSupportedLanguage(string language)
Expand All @@ -44,4 +44,4 @@ public static async Task<string> processTranslationApi(string sourceText, string
return result.Translation;
}
}
}
}

0 comments on commit 9ebdc7e

Please sign in to comment.