mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Remove lingui (#1874)
* remove lingui Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * babelless Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * tweak ts-loader options Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * tweak renderer webpack config Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
1 parent
050603a7b3
commit
a03da3c572
163 files changed
+1140
-12003
No files matched your search
@@ -3,7 +3,6 @@ import "./replicaset-scale-dialog.scss";
|
||||
import React, { Component } from "react";
|
||||
import { computed, observable } from "mobx";
|
||||
import { observer } from "mobx-react";
|
||||
import { Trans } from "@lingui/macro";
|
||||
import { Dialog, DialogProps } from "../dialog";
|
||||
import { Wizard, WizardStep } from "../wizard";
|
||||
import { Icon } from "../icon";
|
||||
@@ -101,11 +100,11 @@ export class ReplicaSetScaleDialog extends Component<Props> {
|
||||
return (
|
||||
<>
|
||||
<div className="current-scale" data-testid="current-scale">
|
||||
<Trans>Current replica scale: {currentReplicas}</Trans>
|
||||
Current replica scale: {currentReplicas}
|
||||
</div>
|
||||
<div className="flex gaps align-center">
|
||||
<div className="desired-scale" data-testid="desired-scale">
|
||||
<Trans>Desired number of replicas</Trans>: {desiredReplicas}
|
||||
Desired number of replicas: {desiredReplicas}
|
||||
</div>
|
||||
<div className="slider-container flex align-center" data-testid="slider">
|
||||
<Slider value={desiredReplicas} max={scaleMax}
|
||||
@@ -128,7 +127,7 @@ export class ReplicaSetScaleDialog extends Component<Props> {
|
||||
{warning &&
|
||||
<div className="warning" data-testid="warning">
|
||||
<Icon material="warning"/>
|
||||
<Trans>High number of replicas may cause cluster performance issues</Trans>
|
||||
High number of replicas may cause cluster performance issues
|
||||
</div>
|
||||
}
|
||||
</>
|
||||
@@ -140,7 +139,7 @@ export class ReplicaSetScaleDialog extends Component<Props> {
|
||||
const replicaSetName = this.replicaSet ? this.replicaSet.getName() : "";
|
||||
const header = (
|
||||
<h5>
|
||||
<Trans>Scale Replica Set <span>{replicaSetName}</span></Trans>
|
||||
Scale Replica Set <span>{replicaSetName}</span>
|
||||
</h5>
|
||||
);
|
||||
|
||||
@@ -157,7 +156,7 @@ export class ReplicaSetScaleDialog extends Component<Props> {
|
||||
<WizardStep
|
||||
contentClass="flex gaps column"
|
||||
next={this.scale}
|
||||
nextLabel={<Trans>Scale</Trans>}
|
||||
nextLabel="Scale"
|
||||
disabledNext={!this.ready}
|
||||
>
|
||||
{this.renderContents()}
|
||||
|
||||
Reference in new issue
Block a user