mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-05 18:47:41 +00:00
Added localization for the Self Serve Model (#406)
* added localization for selfserve model * added comment * addressed PR comments * fixed format errors * Addressed PR comments
This commit is contained in:
committed by
GitHub
parent
f8ede0cc1e
commit
6aaddd9c60
@@ -8,10 +8,10 @@ describe("SmartUiComponent", () => {
|
||||
root: {
|
||||
id: "root",
|
||||
info: {
|
||||
message: "Start at $24/mo per database",
|
||||
messageTKey: "Start at $24/mo per database",
|
||||
link: {
|
||||
href: "https://aka.ms/azure-cosmos-db-pricing",
|
||||
text: "More Details",
|
||||
textTKey: "More Details",
|
||||
},
|
||||
},
|
||||
children: [
|
||||
@@ -21,10 +21,10 @@ describe("SmartUiComponent", () => {
|
||||
dataFieldName: "description",
|
||||
type: "string",
|
||||
description: {
|
||||
text: "this is an example description text.",
|
||||
textTKey: "this is an example description text.",
|
||||
link: {
|
||||
href: "https://docs.microsoft.com/en-us/azure/cosmos-db/introduction",
|
||||
text: "Click here for more information.",
|
||||
textTKey: "Click here for more information.",
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -32,7 +32,7 @@ describe("SmartUiComponent", () => {
|
||||
{
|
||||
id: "throughput",
|
||||
input: {
|
||||
label: "Throughput (input)",
|
||||
labelTKey: "Throughput (input)",
|
||||
dataFieldName: "throughput",
|
||||
type: "number",
|
||||
min: 400,
|
||||
@@ -45,7 +45,7 @@ describe("SmartUiComponent", () => {
|
||||
{
|
||||
id: "throughput2",
|
||||
input: {
|
||||
label: "Throughput (Slider)",
|
||||
labelTKey: "Throughput (Slider)",
|
||||
dataFieldName: "throughput2",
|
||||
type: "number",
|
||||
min: 400,
|
||||
@@ -58,7 +58,7 @@ describe("SmartUiComponent", () => {
|
||||
{
|
||||
id: "throughput3",
|
||||
input: {
|
||||
label: "Throughput (invalid)",
|
||||
labelTKey: "Throughput (invalid)",
|
||||
dataFieldName: "throughput3",
|
||||
type: "boolean",
|
||||
min: 400,
|
||||
@@ -72,7 +72,7 @@ describe("SmartUiComponent", () => {
|
||||
{
|
||||
id: "containerId",
|
||||
input: {
|
||||
label: "Container id",
|
||||
labelTKey: "Container id",
|
||||
dataFieldName: "containerId",
|
||||
type: "string",
|
||||
},
|
||||
@@ -80,9 +80,9 @@ describe("SmartUiComponent", () => {
|
||||
{
|
||||
id: "analyticalStore",
|
||||
input: {
|
||||
label: "Analytical Store",
|
||||
trueLabel: "Enabled",
|
||||
falseLabel: "Disabled",
|
||||
labelTKey: "Analytical Store",
|
||||
trueLabelTKey: "Enabled",
|
||||
falseLabelTKey: "Disabled",
|
||||
defaultValue: true,
|
||||
dataFieldName: "analyticalStore",
|
||||
type: "boolean",
|
||||
@@ -91,7 +91,7 @@ describe("SmartUiComponent", () => {
|
||||
{
|
||||
id: "database",
|
||||
input: {
|
||||
label: "Database",
|
||||
labelTKey: "Database",
|
||||
dataFieldName: "database",
|
||||
type: "object",
|
||||
choices: [
|
||||
@@ -117,6 +117,9 @@ describe("SmartUiComponent", () => {
|
||||
onError={() => {
|
||||
return;
|
||||
}}
|
||||
getTranslation={(key: string) => {
|
||||
return key;
|
||||
}}
|
||||
/>
|
||||
);
|
||||
await new Promise((resolve) => setTimeout(resolve, 0));
|
||||
@@ -145,6 +148,9 @@ describe("SmartUiComponent", () => {
|
||||
onError={() => {
|
||||
return;
|
||||
}}
|
||||
getTranslation={(key: string) => {
|
||||
return key;
|
||||
}}
|
||||
/>
|
||||
);
|
||||
await new Promise((resolve) => setTimeout(resolve, 0));
|
||||
|
||||
Reference in New Issue
Block a user