feat: menus support for multiple languages (#299)

This commit is contained in:
Fine0830
2023-07-12 18:07:34 +08:00
committed by GitHub
parent 5367af47c4
commit 077b68ebbd
23 changed files with 402 additions and 129 deletions

View File

@@ -14,15 +14,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import enTitles from "./menus/en";
const msg = {
general: "General Service",
...enTitles,
services: "Services",
service: "Service",
traces: "Traces",
metrics: "Metrics",
serviceMesh: "Service Mesh",
infrastructure: "Infrastructure",
virtualMachine: "Virtual Machine",
dashboardNew: "New Dashboard",
dashboardList: "Dashboard List",
logs: "Logs",
@@ -35,12 +33,9 @@ const msg = {
mySQL: "MySQL/MariaDB",
serviceName: "Service Name",
technologies: "Technologies",
generalServicePanel: "General Service Panel",
health: "Health",
groupName: "Group Name",
topologies: "Topologies",
dataPanel: "Data Plane",
controlPanel: "Control Plane",
eventList: "Event List",
newDashboard: "Create a new dashboard",
dashboardEdit: "Edit the dashboard",
@@ -117,20 +112,9 @@ const msg = {
rename: "Rename",
deleteTitle: "Are you sure you want to delete this?",
rootTitle: "Are you sure you want to set this?",
selfObservability: "Self Observability",
satellite: "Satellite",
skyWalkingServer: "SkyWalking Server",
functions: "Functions",
browser: "Browser",
linux: "Linux",
editWarning: "You are entering edit mode",
viewWarning: "You are entering view mode",
virtualDatabase: "Virtual Database",
virtualCache: "Virtual Cache",
reloadDashboards: "Reload dashboards",
kubernetesService: "Service",
kubernetesCluster: "Cluster",
kubernetes: "Kubernetes",
textUrl: "Text Hyperlink",
textAlign: "Text Align",
metricLabel: "Metric Label",
@@ -156,9 +140,7 @@ const msg = {
enableAssociate: "Enable association",
text: "Text",
query: "Query",
postgreSQL: "PostgreSQL",
endpointTips: "The table shows up to 20 pieces of endpoints.",
apisix: "APISIX",
viewTrace: "View Related Traces",
relatedTraceOptions: "Related Trace Options",
setLatencyDuration: "Latency Related Metrics",
@@ -282,7 +264,6 @@ const msg = {
aggregation: "Calculation",
unit: "Unit",
labelsIndex: "Label Subscript",
group: "Service Group",
browserView: "Browser",
sortOrder: "Sort Order",
chartType: "Chart Type",
@@ -377,18 +358,6 @@ const msg = {
noticeTag: "Please press Enter after inputting a tag(key=value).",
conditionNotice: "Notice: Please press Enter after inputting a key of content, exclude key of content(key=value).",
language: "Language",
gateway: "Gateway",
virtualMQ: "Virtual MQ",
AWSCloud: "AWS Cloud",
AWSCloudEKS: "EKS",
AWSCloudS3: "S3",
AWSCloudDynamoDB: "DynamoDB",
AWSGateway: "AWS API Gateway",
APIGateway: "API Gateway",
redis: "Redis",
elasticsearch: "Elasticsearch",
mq: "MQ",
rabbitMQ: "RabbitMQ",
save: "Save",
editStrategy: "Edit Policies",
policyList: "Policy List",