- Choose Custom to specify a fixed amount of query results to show, or choose Unlimited to show as
- many query results per page.
+ {t(Keys.panes.settings.pageOptionsDescription)}
= ({
{isCustomPageOptionSelected() && (
- Query results per page{" "}
+ {t(Keys.panes.settings.queryResultsPerPage)}{" "}
- Enter the number of query results that should be shown per page.
+ {t(Keys.panes.settings.queryResultsPerPageTooltip)}
{
setCustomItemPerPage(parseInt(newValue) + 1 || customItemPerPage);
@@ -761,8 +758,8 @@ export const SettingsPane: FunctionComponent<{ explorer: Explorer }> = ({
min={1}
step={1}
className="textfontclr"
- incrementButtonAriaLabel="Increase value by 1"
- decrementButtonAriaLabel="Decrease value by 1"
+ incrementButtonAriaLabel={t(Keys.common.increaseValueBy1)}
+ decrementButtonAriaLabel={t(Keys.common.decreaseValueBy1)}
styles={spinButtonStyles}
/>
- Changes region the Cosmos Client uses to access account.
+ {t(Keys.panes.settings.regionSelectionDescription)}
- Select Region
+ {t(Keys.panes.settings.selectRegion)}
- Changes the account endpoint used to perform client operations.
+ {t(Keys.panes.settings.selectRegionTooltip)}
= ({
<>
-
Query Timeout
+
{t(Keys.panes.settings.queryTimeout)}
- When a query reaches a specified time limit, a popup with an option to cancel the query will
- show unless automatic cancellation has been enabled.
+ {t(Keys.panes.settings.queryTimeoutDescription)}
- Select the default view to use when displaying query results.
+ {t(Keys.panes.settings.defaultQueryResultsDescription)}
= ({
{showRetrySettings && (
-
Retry Settings
+
{t(Keys.panes.settings.retrySettings)}
- Retry policy associated with throttled requests during CosmosDB queries.
+ {t(Keys.panes.settings.retrySettingsDescription)}
- Max retry attempts
+ {t(Keys.panes.settings.maxRetryAttempts)}
- Max number of retries to be performed for a request. Default value 9.
+ {t(Keys.panes.settings.maxRetryAttemptsTooltip)}
- Fixed retry interval (ms)
+ {t(Keys.panes.settings.fixedRetryInterval)}
- Fixed retry interval in milliseconds to wait between each retry ignoring the retryAfter returned
- as part of the response. Default value is 0 milliseconds.
+ {t(Keys.panes.settings.fixedRetryIntervalTooltip)}
- Max wait time (s)
+ {t(Keys.panes.settings.maxWaitTime)}
- Max wait time in seconds to wait for a request while the retries are happening. Default value 30
- seconds.
+ {t(Keys.panes.settings.maxWaitTimeTooltip)}
= ({
step={1}
value={"" + MaxWaitTimeInSeconds}
onChange={handleOnMaxWaitTimeSpinButtonChange}
- incrementButtonAriaLabel="Increase value by 1"
- decrementButtonAriaLabel="Decrease value by 1"
+ incrementButtonAriaLabel={t(Keys.common.increaseValueBy1)}
+ decrementButtonAriaLabel={t(Keys.common.decreaseValueBy1)}
onIncrement={(newValue) =>
setMaxWaitTimeInSeconds(parseInt(newValue) + 1 || MaxWaitTimeInSeconds)
}
@@ -1039,24 +1032,26 @@ export const SettingsPane: FunctionComponent<{ explorer: Explorer }> = ({
{!isEmulator && (
-
- Load 50 containers at a time. Currently, containers are not pulled in alphanumeric order.
+ {t(Keys.panes.settings.enableContainerPaginationDescription)}
- Send more than one request while executing a query. More than one request is necessary if the
- query is not scoped to single partition key value.
+ {t(Keys.panes.settings.enableCrossPartitionQueryDescription)}
- Gets or sets the number of concurrent operations run client side during parallel query execution.
- A positive property value limits the number of concurrent operations to the set value. If it is
- set to less than 0, the system automatically decides the number of concurrent operations to run.
+ {t(Keys.panes.settings.maxDegreeOfParallelismDescription)}
- Sets the priority level for data-plane requests from Data Explorer when using Priority-Based
- Execution. If "None" is selected, Data Explorer will not specify priority level, and the
- server-side default priority level will be used.
+ {t(Keys.panes.settings.priorityLevelDescription)}
- Select Graph to automatically visualize the query results as a Graph or JSON to display the
- results as JSON.
+ {t(Keys.panes.settings.displayGremlinQueryResultsDescription)}
- This is a sample database and collection with synthetic product data you can use to explore using
- NoSQL queries. This will appear as another database in the Data Explorer UI, and is created by,
- and maintained by Microsoft at no cost to you.
+ {t(Keys.panes.settings.enableSampleDatabaseDescription)}
- GuidRepresentation in MongoDB refers to how Globally Unique Identifiers (GUIDs) are serialized and
- deserialized when stored in BSON documents. This will apply to all document operations.
+ {t(Keys.panes.settings.guidRepresentationDescription)}
= ({
)}
-
Advanced Settings
+
{t(Keys.panes.settings.advancedSettings)}
@@ -1283,14 +1275,13 @@ export const SettingsPane: FunctionComponent<{ explorer: Explorer }> = ({
},
}}
className="padding"
- ariaLabel="Ignore partition key on document update"
+ ariaLabel={t(Keys.panes.settings.ignorePartitionKey)}
checked={ignorePartitionKeyOnDocumentUpdate}
onChange={handleOnIgnorePartitionKeyOnDocumentUpdateChange}
- label="Ignore partition key on document update"
+ label={t(Keys.panes.settings.ignorePartitionKey)}
/>
- If checked, the partition key value will not be used to locate the document during update
- operations. Only use this if document updates are failing due to an abnormal partition key.
+ {t(Keys.panes.settings.ignorePartitionKeyTooltip)}
@@ -1320,9 +1311,9 @@ export const SettingsPane: FunctionComponent<{ explorer: Explorer }> = ({
}}
onClick={() => {
useDialog.getState().showOkCancelModalDialog(
- "Clear History",
+ t(Keys.panes.settings.clearHistory),
undefined,
- "Are you sure you want to proceed?",
+ t(Keys.panes.settings.clearHistoryConfirm),
() => {
deleteAllStates();
updateUserContext({
@@ -1332,35 +1323,33 @@ export const SettingsPane: FunctionComponent<{ explorer: Explorer }> = ({
});
useClientWriteEnabled.setState({ clientWriteEnabled: true });
},
- "Cancel",
+ t(Keys.common.cancel),
undefined,
<>
-
- This action will clear the all customizations for this account in this browser, including:
-
+ {t(Keys.panes.settings.clearHistoryDescription)}
-
Reset your customized tab layout, including the splitter positions
-
Erase your table column preferences, including any custom columns
-
Clear your filter history
-
Reset region selection to global
+
{t(Keys.panes.settings.clearHistoryTabLayout)}
+
{t(Keys.panes.settings.clearHistoryTableColumns)}
+
{t(Keys.panes.settings.clearHistoryFilters)}
+
{t(Keys.panes.settings.clearHistoryRegion)}
>,
);
}}
>
- Clear History
+ {t(Keys.panes.settings.clearHistory)}
-
Explorer Version
+
{t(Keys.panes.settings.explorerVersion)}
{explorerVersion}
-
Session ID
+
{t(Keys.panes.settings.sessionId)}
{sessionId}
diff --git a/src/Explorer/Panes/SettingsPane/__snapshots__/SettingsPane.test.tsx.snap b/src/Explorer/Panes/SettingsPane/__snapshots__/SettingsPane.test.tsx.snap
index af4dbbd11..31cca5d75 100644
--- a/src/Explorer/Panes/SettingsPane/__snapshots__/SettingsPane.test.tsx.snap
+++ b/src/Explorer/Panes/SettingsPane/__snapshots__/SettingsPane.test.tsx.snap
@@ -660,7 +660,7 @@ exports[`Settings Pane should render Default properly 1`] = `
Send more than one request while executing a query. More than one request is necessary if the query is not scoped to single partition key value.