-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1180 from abpframework/Docs-multi-language
Docs multi language
- Loading branch information
Showing
25 changed files
with
246 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
modules/docs/src/Volo.Docs.Domain.Shared/Volo/Docs/Language/LanguageConsts.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
| ||
namespace Volo.Docs.Language | ||
{ | ||
public static class LanguageConsts | ||
{ | ||
public const int MaxLanguageCodeLength = 10; | ||
} | ||
} |
7 changes: 5 additions & 2 deletions
7
modules/docs/src/Volo.Docs.Domain/Volo/Docs/Documents/IDocumentStore.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
using System.Collections.Generic; | ||
using System.Threading.Tasks; | ||
using Volo.Abp.Domain.Services; | ||
using Volo.Docs.GitHub.Documents; | ||
using Volo.Docs.Projects; | ||
|
||
namespace Volo.Docs.Documents | ||
{ | ||
public interface IDocumentStore : IDomainService | ||
{ | ||
Task<Document> GetDocumentAsync(Project project, string documentName, string version); | ||
Task<Document> GetDocumentAsync(Project project, string documentName, string languageCode, string version); | ||
|
||
Task<List<VersionInfo>> GetVersionsAsync(Project project); | ||
|
||
Task<DocumentResource> GetResource(Project project, string resourceName, string version); | ||
Task<DocumentResource> GetResource(Project project, string resourceName, string languageCode, string version); | ||
|
||
Task<LanguageConfig> GetLanguageListAsync(Project project, string version); | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
modules/docs/src/Volo.Docs.Domain/Volo/Docs/Documents/LanguageConfig.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Volo.Docs.Documents | ||
{ | ||
public class LanguageConfig | ||
{ | ||
public List<LanguageConfigElement> Languages { get; set; } | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
modules/docs/src/Volo.Docs.Domain/Volo/Docs/Documents/LanguageConfigElement.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace Volo.Docs.Documents | ||
{ | ||
public class LanguageConfigElement | ||
{ | ||
public string DisplayName { get; set; } | ||
|
||
public string Code { get; set; } | ||
|
||
public bool IsDefault { get; set; } | ||
} | ||
} |
Oops, something went wrong.