Skip to content

Commit

Permalink
Add i18n messages
Browse files Browse the repository at this point in the history
  • Loading branch information
strseb committed Aug 27, 2024
1 parent 624205f commit 5770420
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,9 @@
"vpnIsOff": {
"message": "VPN is Off",
"description": "Header to signal that VPN connection is disabled"
},
"searchServer": {
"message": "Search Server",
"description": "Placeholder for the Input field Where users can search the Serverlist"
}
}
4 changes: 3 additions & 1 deletion src/components/serverlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import {
} from "../vendor/lit-all.min.js";
import { resetSizing } from "./styles.js";

import { tr } from "../shared/i18n.js";

import { ServerCity } from "../background/vpncontroller/states.js";

/**
Expand Down Expand Up @@ -119,7 +121,7 @@ export class ServerList extends LitElement {
<input
type="text"
class="search"
placeholder="Search Countries"
placeholder="${tr("searchServer")}"
${ref(this.filterInput)}
@change=${() => this.requestUpdate()}
@input=${() => this.requestUpdate()}
Expand Down

0 comments on commit 5770420

Please sign in to comment.