本地化
This commit is contained in:
@@ -95,6 +95,12 @@ namespace AibisDream.Framework
|
||||
{
|
||||
return LocalizeParam(param, _paramTable);
|
||||
}
|
||||
|
||||
public static string GetL10NParamKey(string key)
|
||||
{
|
||||
// 本地化参数则去除前缀,非本地化参数直接返回
|
||||
return key.StartsWith(LocalizationPrefix) ? key[LocalizationPrefix.Length..] : key;
|
||||
}
|
||||
}
|
||||
|
||||
public class LocalizationTable
|
||||
|
||||
Reference in New Issue
Block a user