diff --git a/RMuseum/RMuseum.xml b/RMuseum/RMuseum.xml
index 8f044d18..3e613daa 100644
--- a/RMuseum/RMuseum.xml
+++ b/RMuseum/RMuseum.xml
@@ -8351,6 +8351,61 @@
+
+
+ translation service implementation
+
+
+
+
+ add language
+
+
+
+
+
+
+
+ update an existing language
+
+
+
+
+
+
+ حذف زبان
+
+
+
+
+
+
+ get langauge by id
+
+
+
+
+
+
+ get all languages
+
+
+
+
+
+ add or update poem translation
+
+
+
+
+
+
+ get translation
+
+
+
+
+
IArtifactService implementation
@@ -9946,6 +10001,11 @@
+
+
+ translation service implementation
+
+
add language
diff --git a/RMuseum/Services/IGanjoorTranslationService.cs b/RMuseum/Services/IGanjoorTranslationService.cs
new file mode 100644
index 00000000..2184faf1
--- /dev/null
+++ b/RMuseum/Services/IGanjoorTranslationService.cs
@@ -0,0 +1,66 @@
+using RMuseum.Models.Ganjoor;
+using RMuseum.Models.Ganjoor.ViewModels;
+using RSecurityBackend.Models.Generic;
+using System.Threading.Tasks;
+
+namespace RMuseum.Services
+{
+ ///
+ /// translation service implementation
+ ///
+ public interface IGanjoorTranslationService
+ {
+ ///
+ /// add language
+ ///
+ ///
+ ///
+ ///
+ Task> AddLanguageAsync(string name, bool rtl);
+
+
+ ///
+ /// update an existing language
+ ///
+ ///
+ ///
+ Task> UpdateLangaugeAsync(GanjoorLanguage updated);
+
+
+ ///
+ /// حذف زبان
+ ///
+ ///
+ ///
+ Task> DeleteLangaugeAsync(int id);
+
+
+ ///
+ /// get langauge by id
+ ///
+ ///
+ ///
+ Task> GetLanguageAsync(int id);
+
+ ///
+ /// get all languages
+ ///
+ ///
+ Task> GetLanguagesAsync();
+
+ ///
+ /// add or update poem translation
+ ///
+ ///
+ ///
+ Task> AddOrUpdatePoemTranslation(GanjoorPoemTranslationViewModel translation);
+
+ ///
+ /// get translation
+ ///
+ ///
+ ///
+ ///
+ Task> GetTranslationAsync(int langId, int poemId);
+ }
+}
diff --git a/RMuseum/Services/Implementation/GanjoorTranslationService.cs b/RMuseum/Services/Implementation/GanjoorTranslationService.cs
index 43f9b39a..4c7ce968 100644
--- a/RMuseum/Services/Implementation/GanjoorTranslationService.cs
+++ b/RMuseum/Services/Implementation/GanjoorTranslationService.cs
@@ -9,7 +9,10 @@ using System.Threading.Tasks;
namespace RMuseum.Services.Implementation
{
- public class GanjoorTranslationService
+ ///
+ /// translation service implementation
+ ///
+ public class GanjoorTranslationService : IGanjoorTranslationService
{
///
/// add language
diff --git a/RMuseum/Startup.cs b/RMuseum/Startup.cs
index 21c6b708..82101944 100644
--- a/RMuseum/Startup.cs
+++ b/RMuseum/Startup.cs
@@ -285,6 +285,9 @@ namespace RMuseum
//donation service
services.AddTransient();
+ //translation service
+ services.AddTransient();
+
//upload limit for IIS
services.Configure(options =>
{