Skip to content

Commit

Permalink
增加繁体中文资源
Browse files Browse the repository at this point in the history
  • Loading branch information
Codespilot committed Jan 20, 2024
1 parent f717ca4 commit a3072eb
Show file tree
Hide file tree
Showing 8 changed files with 321 additions and 135 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,4 @@ public interface IDictionaryApplicationService : IApplicationService
/// <param name="cancellationToken"></param>
/// <returns></returns>
Task<List<DictionaryItemDto>> GetDatabaseTypeItemsAsync(CancellationToken cancellationToken = default);

/// <summary>
/// 获取可用的配置节点类型列表
/// </summary>
/// <param name="cancellationToken"></param>
/// <returns></returns>
Task<List<DictionaryItemDto>> GetSettingItemTypeItemsAsync(CancellationToken cancellationToken = default);
}
Original file line number Diff line number Diff line change
Expand Up @@ -105,43 +105,4 @@ public Task<List<DictionaryItemDto>> GetDatabaseTypeItemsAsync(CancellationToken
};
return Task.FromResult(items);
}

/// <inheritdoc />
public Task<List<DictionaryItemDto>> GetSettingItemTypeItemsAsync(CancellationToken cancellationToken = default)
{
var items = new List<DictionaryItemDto>
{
new()
{
Name = nameof(SettingItemType.Root),
Description = Resources.IDS_ENUM_SETTING_ITEM_TYPE_ROOT
},
new()
{
Name = nameof(SettingItemType.Array),
Description = Resources.IDS_ENUM_SETTING_ITEM_TYPE_ARRAY
},
new()
{
Name = nameof(SettingItemType.Object),
Description = Resources.IDS_ENUM_SETTING_ITEM_TYPE_OBJECT
},
new()
{
Name = nameof(SettingItemType.String),
Description = Resources.IDS_ENUM_SETTING_ITEM_TYPE_STRING
},
new()
{
Name = nameof(SettingItemType.Number),
Description = Resources.IDS_ENUM_SETTING_ITEM_TYPE_NUMBER
},
new()
{
Name = nameof(SettingItemType.Boolean),
Description = Resources.IDS_ENUM_SETTING_ITEM_TYPE_BOOLEAN
}
};
return Task.FromResult(items);
}
}
23 changes: 1 addition & 22 deletions Source/Starfish.Service/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -136,35 +136,14 @@
<value>User Acceptance Testing</value>
</data>
<data name="IDS_DICTIONARY_NAME_SA" xml:space="preserve">
<value>Super administrator</value>
<value>System administrator</value>
</data>
<data name="IDS_ENUM_APPINFO_STATUS_DISABLED" xml:space="preserve">
<value>Disabled</value>
</data>
<data name="IDS_ENUM_APPINFO_STATUS_ENABLED" xml:space="preserve">
<value>Enabled</value>
</data>
<data name="IDS_ENUM_SETTING_ITEM_TYPE_ARRAY" xml:space="preserve">
<value>Array</value>
</data>
<data name="IDS_ENUM_SETTING_ITEM_TYPE_BOOLEAN" xml:space="preserve">
<value>Boolean</value>
</data>
<data name="IDS_ENUM_SETTING_ITEM_TYPE_NUMBER" xml:space="preserve">
<value>Number</value>
</data>
<data name="IDS_ENUM_SETTING_ITEM_TYPE_OBJECT" xml:space="preserve">
<value>Object</value>
</data>
<data name="IDS_ENUM_SETTING_ITEM_TYPE_REFERER" xml:space="preserve">
<value>Referer</value>
</data>
<data name="IDS_ENUM_SETTING_ITEM_TYPE_ROOT" xml:space="preserve">
<value>Root</value>
</data>
<data name="IDS_ENUM_SETTING_ITEM_TYPE_STRING" xml:space="preserve">
<value>String</value>
</data>
<data name="IDS_ENUM_SETTING_STATUS_DISABLED" xml:space="preserve">
<value>Disabled</value>
</data>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,35 +136,14 @@
<value>用户验收测试</value>
</data>
<data name="IDS_DICTIONARY_NAME_SA" xml:space="preserve">
<value>超级管理员</value>
<value>系统管理员</value>
</data>
<data name="IDS_ENUM_APPINFO_STATUS_DISABLED" xml:space="preserve">
<value>禁用</value>
</data>
<data name="IDS_ENUM_APPINFO_STATUS_ENABLED" xml:space="preserve">
<value>启用</value>
</data>
<data name="IDS_ENUM_SETTING_ITEM_TYPE_ARRAY" xml:space="preserve">
<value>集合</value>
</data>
<data name="IDS_ENUM_SETTING_ITEM_TYPE_BOOLEAN" xml:space="preserve">
<value>布尔</value>
</data>
<data name="IDS_ENUM_SETTING_ITEM_TYPE_NUMBER" xml:space="preserve">
<value>数字</value>
</data>
<data name="IDS_ENUM_SETTING_ITEM_TYPE_OBJECT" xml:space="preserve">
<value>对象</value>
</data>
<data name="IDS_ENUM_SETTING_ITEM_TYPE_REFERER" xml:space="preserve">
<value>引用</value>
</data>
<data name="IDS_ENUM_SETTING_ITEM_TYPE_ROOT" xml:space="preserve">
<value>根节点</value>
</data>
<data name="IDS_ENUM_SETTING_ITEM_TYPE_STRING" xml:space="preserve">
<value>字符串</value>
</data>
<data name="IDS_ENUM_SETTING_STATUS_DISABLED" xml:space="preserve">
<value>禁用</value>
</data>
Expand All @@ -181,7 +160,7 @@
<value>应用唯一编码不可用。</value>
</data>
<data name="IDS_ERROR_APPINFO_NOT_EXISTS" xml:space="preserve">
<value>应用信息不存在,[Id]:{0}。</value>
<value>应用不存在,[Id]:{0}。</value>
</data>
<data name="IDS_ERROR_APPINFO_SECRET_NOT_MATCHES_RULE" xml:space="preserve">
<value>密钥不符合规则。</value>
Expand All @@ -202,10 +181,10 @@
<value>密码不正确。</value>
</data>
<data name="IDS_ERROR_REFRESH_TOKEN_EXPIRED" xml:space="preserve">
<value>Token已失效。</value>
<value>刷新令牌已过期。</value>
</data>
<data name="IDS_ERROR_REFRESH_TOKEN_IS_INVALID" xml:space="preserve">
<value>无效的Token。</value>
<value>刷新令牌无效。</value>
</data>
<data name="IDS_ERROR_REFRESH_TOKEN_REQUIRED" xml:space="preserve">
<value>Token不能为空。</value>
Expand Down Expand Up @@ -300,6 +279,9 @@
<data name="IDS_MESSAGE_LOGS_APPS_ENABLE" xml:space="preserve">
<value>启用应用 {0}({1})。</value>
</data>
<data name="IDS_MESSAGE_LOGS_APPS_RESET_SECRET" xml:space="preserve">
<value>重置应用密钥 {0}({1})。</value>
</data>
<data name="IDS_MESSAGE_LOGS_APPS_UPDATE" xml:space="preserve">
<value>更新应用 {0}({1})。</value>
</data>
Expand All @@ -321,7 +303,4 @@
<data name="IDS_MESSAGE_LOGS_SETTING_UPDATE" xml:space="preserve">
<value>更新配置,[应用]:{0},[环境]:{1}。</value>
</data>
<data name="IDS_MESSAGE_LOGS_APPS_RESET_SECRET" xml:space="preserve">
<value>重置应用密钥 {0}({1})。</value>
</data>
</root>
Loading

0 comments on commit a3072eb

Please sign in to comment.