🐛 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",
"updateError": "Update failed",
"updateSuccess": "Settings updated successfully",
"userAgentLimit": "{userAgent} Restriction",
"userAgentLimitDescription": "Enable access restrictions based on {userAgent}",
"userAgentList": "{userAgent} Whitelist",
"userAgentListDescription": "Allowed {userAgent} for subscription access, one per line. Configured application {userAgent} will be automatically included",
"userAgentListPlaceholder": "Enter allowed {userAgent}, one per line",
"userAgentLimit": "{{userAgent}} Restriction",
"userAgentLimitDescription": "Enable access restrictions based on {{userAgent}}",
"userAgentList": "{{userAgent}} Whitelist",
"userAgentListDescription": "Allowed {{userAgent}} for subscription access, one per line. Configured application {{userAgent}} will be automatically included",
"userAgentListPlaceholder": "Enter allowed {{userAgent}}, one per line",
"wildcardResolution": "Wildcard Resolution",
"wildcardResolutionDescription": "Enable wildcard domain resolution for subscriptions"
},

View File

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

View File

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