🐛 fix: update user agent placeholders in subscription configuration for consistency

This commit is contained in:
web 2025-12-16 06:33:48 -08:00
parent 11a0df67b7
commit 7f06f76056
3 changed files with 15 additions and 15 deletions

View File

@ -33,11 +33,11 @@
"title": "Subscription Configuration", "title": "Subscription Configuration",
"updateError": "Update failed", "updateError": "Update failed",
"updateSuccess": "Settings updated successfully", "updateSuccess": "Settings updated successfully",
"userAgentLimit": "{userAgent} Restriction", "userAgentLimit": "{{userAgent}} Restriction",
"userAgentLimitDescription": "Enable access restrictions based on {userAgent}", "userAgentLimitDescription": "Enable access restrictions based on {{userAgent}}",
"userAgentList": "{userAgent} Whitelist", "userAgentList": "{{userAgent}} Whitelist",
"userAgentListDescription": "Allowed {userAgent} for subscription access, one per line. Configured application {userAgent} will be automatically included", "userAgentListDescription": "Allowed {{userAgent}} for subscription access, one per line. Configured application {{userAgent}} will be automatically included",
"userAgentListPlaceholder": "Enter allowed {userAgent}, one per line", "userAgentListPlaceholder": "Enter allowed {{userAgent}}, one per line",
"wildcardResolution": "Wildcard Resolution", "wildcardResolution": "Wildcard Resolution",
"wildcardResolutionDescription": "Enable wildcard domain resolution for subscriptions" "wildcardResolutionDescription": "Enable wildcard domain resolution for subscriptions"
}, },

View File

@ -31,11 +31,11 @@
"title": "订阅配置", "title": "订阅配置",
"updateError": "更新失败", "updateError": "更新失败",
"updateSuccess": "设置更新成功", "updateSuccess": "设置更新成功",
"userAgentLimit": "{userAgent} 限制", "userAgentLimit": "{{userAgent}} 限制",
"userAgentLimitDescription": "基于 {userAgent} 启用访问限制", "userAgentLimitDescription": "基于 {{userAgent}} 启用访问限制",
"userAgentList": "{userAgent} 白名单", "userAgentList": "{{userAgent}} 白名单",
"userAgentListDescription": "允许访问订阅的 {userAgent},每行一个。已配置的应用程序 {userAgent} 将自动包含", "userAgentListDescription": "允许访问订阅的 {{userAgent}},每行一个。已配置的应用程序 {{userAgent}} 将自动包含",
"userAgentListPlaceholder": "输入允许的 {userAgent},每行一个", "userAgentListPlaceholder": "输入允许的 {{userAgent}},每行一个",
"wildcardResolution": "泛域名解析", "wildcardResolution": "泛域名解析",
"wildcardResolutionDescription": "为订阅启用泛域名解析" "wildcardResolutionDescription": "为订阅启用泛域名解析"
}, },

View File

@ -244,7 +244,7 @@ export default function ConfigForm() {
render={({ field }) => ( render={({ field }) => (
<FormItem> <FormItem>
<FormLabel> <FormLabel>
{t("config.userAgentLimit", "{userAgent} Restriction", { {t("config.userAgentLimit", "{{userAgent}} Restriction", {
userAgent: "User-Agent", userAgent: "User-Agent",
})} })}
</FormLabel> </FormLabel>
@ -258,7 +258,7 @@ export default function ConfigForm() {
<FormDescription> <FormDescription>
{t( {t(
"config.userAgentLimitDescription", "config.userAgentLimitDescription",
"Enable access restrictions based on {userAgent}", "Enable access restrictions based on {{userAgent}}",
{ {
userAgent: "User-Agent", userAgent: "User-Agent",
} }
@ -275,7 +275,7 @@ export default function ConfigForm() {
render={({ field }) => ( render={({ field }) => (
<FormItem> <FormItem>
<FormLabel> <FormLabel>
{t("config.userAgentList", "{userAgent} Whitelist", { {t("config.userAgentList", "{{userAgent}} Whitelist", {
userAgent: "User-Agent", userAgent: "User-Agent",
})} })}
</FormLabel> </FormLabel>
@ -284,7 +284,7 @@ export default function ConfigForm() {
className="h-32" className="h-32"
placeholder={`${t( placeholder={`${t(
"config.userAgentListPlaceholder", "config.userAgentListPlaceholder",
"Enter allowed {userAgent}, one per line", "Enter allowed {{userAgent}}, one per line",
{ userAgent: "User-Agent" } { userAgent: "User-Agent" }
)}\nClashX\nClashForAndroid\nClash-verge`} )}\nClashX\nClashForAndroid\nClash-verge`}
{...field} {...field}
@ -293,7 +293,7 @@ export default function ConfigForm() {
<FormDescription> <FormDescription>
{t( {t(
"config.userAgentListDescription", "config.userAgentListDescription",
"Allowed {userAgent} for subscription access, one per line. Configured application {userAgent} will be automatically included", "Allowed {{userAgent}} for subscription access, one per line. Configured application {{userAgent}} will be automatically included",
{ {
userAgent: "User-Agent", userAgent: "User-Agent",
} }