Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Improve i18n IDE tooling #7781

Merged
merged 1 commit into from
Mar 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"recommendations": [
"dbaeumer.vscode-eslint"
"dbaeumer.vscode-eslint",
"lokalise.i18n-ally"
]
}
7 changes: 6 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,10 @@
},
"editor.tabSize": 2,
"scm.alwaysShowRepositories": true,
"scm.repositories.visible": 0
"scm.repositories.visible": 0,
"i18n-ally.localesPaths": [
"packages/client-core/i18n"
],
"i18n-ally.keystyle": "nested",
"i18n-ally.namespace": true
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { useEffect } from 'react'
import { useTranslation } from 'react-i18next'

import { BuildStatus } from '@etherealengine/common/src/interfaces/BuildStatus'
import { getMutableState, useHookstate } from '@etherealengine/hyperflux'
Expand Down Expand Up @@ -30,6 +31,7 @@ const defaultBuildStatus = {
}

const BuildStatusDrawer = ({ open, onClose }: Props) => {
const { t } = useTranslation()
const page = useHookstate(0)
const rowsPerPage = useHookstate(10)
const selectedStatusId = useHookstate(0)
Expand Down Expand Up @@ -137,7 +139,7 @@ const BuildStatusDrawer = ({ open, onClose }: Props) => {
return (
<DrawerView open={open} onClose={handleClose}>
<Container maxWidth="sm" className={styles.mt20}>
<DialogTitle className={styles.textAlign}></DialogTitle>
<DialogTitle className={styles.textAlign}>{t('admin:components.project.buildStatus')}</DialogTitle>
<TableComponent
allowSort={false}
fieldOrder={fieldOrder.value}
Expand Down