8000 chore: remove i18next by aslilac · Pull Request #9608 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

chore: remove i18next #9608

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 67 commits into from
Sep 11, 2023
Merged
Changes from 1 commit
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
0b0725c
remove i18next packages
aslilac Sep 8, 2023
6a585bc
remove provider
aslilac Sep 8, 2023
7e63f30
refactor `DeleteDialog`
aslilac Sep 8, 2023
6636ed7
refactor `Expander`
aslilac Sep 8, 2023
202c9fa
refactor `IconField`
aslilac Sep 8, 2023
18c04b4
refactor `AgentOutdatedTooltip`
aslilac Sep 8, 2023
9d93117
refactor `AgentRowPreview`
aslilac Sep 8, 2023
8d79655
refactor `AgentStatus`
aslilac Sep 8, 2023
9164286
refactor `ShareIcon`
aslilac Sep 8, 2023
7ff932b
refactor `UserAutocomplete`
aslilac Sep 8, 2023
9ae7372
remove stale comment
aslilac Sep 8, 2023
6678f40
refactor `AuditPageView`
aslilac Sep 8, 2023
fc043ed
refactor `AuditPaywall`
aslilac Sep 8, 2023
3eb8d69
`AuditLogRow`
aslilac Sep 8, 2023
b57d555
refactor `AuditLogDescription`
aslilac Sep 8, 2023
b27f918
refactor `BuildAuditDescription`
aslilac Sep 8, 2023
f0a9296
refactor `CreateTemplateForm`
aslilac Sep 8, 2023
61fdfe5
refactor `CreateTemplatePage`
aslilac Sep 8, 2023
f769e69
refactor `TemplateUpload`
aslilac Sep 8, 2023
3127d57
refactor `CreateTokenForm`
aslilac Sep 8, 2023
9c76a7b
refactor `CreateTokenPage`
aslilac Sep 8, 2023
16a3f21
refactor `CreateWorkspacePageView`
aslilac Sep 8, 2023
026ddaa
refactor `AppearanceSettingsPageView`
aslilac Sep 8, 2023
5784b91
refactor `SettingsGroupPageView`
aslilac Sep 8, 2023
f5cb010
refactor utils.ts
aslilac Sep 8, 2023
b1d8c5c
refactor `VersionRow`
aslilac Sep 8, 2023
b448bb0
refactor `TemplateSettingsForm`
aslilac Sep 8, 2023
39438e1
refactor `LoginPage` and `SignInForm`
aslilac Sep 8, 2023
adbb256
refactor `StarterTemplatePageView`
aslilac Sep 8, 2023
0f181e8
refactor `StarterTemplatesPage`
aslilac Sep 8, 2023
5800e18
refactor `Workspace`
aslilac Sep 8, 2023
7278c0d
refactor `EditRolesButton`
aslilac Sep 8, 2023
78b7cc0
refactor `TemplateScheduleForm`
aslilac Sep 8, 2023
29652ea
refactor `TemplateVariableField`
aslilac Sep 8, 2023
337c21d
refactor `EmptyTemplates`
aslilac Sep 8, 2023
89867ff
refactor `TemplateVariablesPage`
aslilac Sep 8, 2023
5e71acb
refactor `userSecuritySettingsXService`
aslilac Sep 8, 2023
46cddf5
refactor `ConfirmDeleteDialog`
aslilac Sep 8, 2023
633e574
refactor workspace.tsx
aslilac Sep 8, 2023
76c78ea
refactor `WorkspaceDeletedBanner`
aslilac Sep 8, 2023
90165f7
refactor `TokensPage`
aslilac Sep 8, 2023
4dde5f2
refactor formHelpers.tsx
aslilac Sep 8, 2023
61e7571
refactor `UsersTableBody`
aslilac Sep 8, 2023
106a6fe
refactor `TemplateSettingsPage`
aslilac Sep 8, 2023
b2d644f
refactor `AutostopRequirementHelperText`
aslilac Sep 8, 2023
441803b
refactor `TemplateVariablesForm`
aslilac Sep 8, 2023
8ec0f96
refactor `TemplateVersionPage`
aslilac Sep 8, 2023
72abadb
remove stale comment
aslilac Sep 8, 2023
ef93712
refactor `TokensPageView`
aslilac Sep 8, 2023
32252f3
refactor `BuildRow`
aslilac Sep 8, 2023
66da852
refactor `WorkspaceReadyPage`
aslilac Sep 8, 2023
87a1654
refactor `WorkspacesTable`
aslilac Sep 8, 2023
2ab4c40
refactor `useValidationSchemaForRichParameters`
aslilac Sep 8, 2023
9a4ba70
refactor `UpdateBuildParametersDialog`
aslilac Sep 8, 2023
1440b5a
refactor `WorkspaceSchedulePage`
aslilac Sep 8, 2023
d1a2905
refactor `WorkspaceParametersForm`
aslilac Sep 8, 2023
622ce4a
refactor `WorkspaceSettingsPageView`
aslilac Sep 8, 2023
bd51244
refactor `CreateWorkspacePage` test
aslilac Sep 8, 2023
f1c5909
refactor all the remaining tests
aslilac Sep 8, 2023
4e26e98
refactor `TTLHelperText`
aslilac Sep 8, 2023
1ee252d
stragglers
aslilac Sep 8, 2023
a85cd71
linting
aslilac Sep 8, 2023
4a7b127
fix tests
aslilac Sep 8, 2023
366d513
remove remaining translation files
aslilac Sep 8, 2023
7359de0
fix storybook build
aslilac Sep 8, 2023
45c3335
Merge branch 'main' into axe-i18next
aslilac Sep 11, 2023
9216208
fix a couple stories
aslilac Sep 11, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor Expander
  • Loading branch information
aslilac committed Sep 8, 2023
commit 6636ed736b8859c0639ce8c654c25034db70c7f4
6 changes: 2 additions & 4 deletions site/src/components/Expander/Expander.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
} from "components/DropdownArrows/DropdownArrows";
import { PropsWithChildren, FC } from "react";
import Collapse from "@mui/material/Collapse";
import { useTranslation } from "react-i18next";
import { combineClasses } from "utils/combineClasses";

export interface ExpanderProps {
Expand All @@ -20,7 +19,6 @@ export const Expander: FC<PropsWithChildren<ExpanderProps>> = ({
children,
}) => {
const styles = useStyles();
const { t } = useTranslation("common");

const toggleExpanded = () => setExpanded(!expanded);

Expand All @@ -29,7 +27,7 @@ export const Expander: FC<PropsWithChildren<ExpanderProps>> = ({
{!expanded && (
<Link onClick={toggleExpanded} className={styles.expandLink}>
<span className={styles.text}>
{t("ctas.expand")}
Click here to learn more
<OpenDropdown margin={false} />
</span>
</Link>
Expand All @@ -43,7 +41,7 @@ export const Expander: FC<PropsWithChildren<ExpanderProps>> = ({
className={combineClasses([styles.expandLink, styles.collapseLink])}
>
<span className={styles.text}>
{t("ctas.collapse")}
Click here to hide
<CloseDropdown margin={false} />
</span>
</Link>
Expand Down
0