-
Notifications
You must be signed in to change notification settings - Fork 25
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
i18n, add chinese lang #15
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much for your efforts! Here are a few changes and suggestions:
- Please add a switch button in the header to allow users to choose the language, with English set as the default.
- Kindly add back the Google Analytics measurement.
- Additional minor suggestions are provided in the separate comments.
Please enable "Include Text Unit" and "Include Communities" | ||
{hasCovariates && ', and "Include Covariates"'} to use Local | ||
Search. | ||
{t('apiSearchDrawer.enableLocalSearch', { hasCovariates })} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be fixed. The intention is that when users upload a covariate parquet file, 'hasCovariate' will be set to true. Therefore, displaying this label will be meaningful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this file necessary?
|
||
i18n.use(initReactI18next) | ||
.init({ | ||
lng: 'zh-Hans', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please set the default language to English.
@@ -46,3 +46,20 @@ The logic for creating relationships for text units, documents, communities, and | |||
| Text Unit | `HAS_COVARIATE` | Covariate | | |||
| Community | `HAS_FINDING` | Finding | | |||
| Entity | `IN_COMMUNITY` | Community | | |||
|
|||
|
|||
## |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a title here, e.g., ## Docker Setup.
import { initReactI18next } from 'react-i18next' | ||
|
||
import data from './languages.json' | ||
import Introduction from '@/app/components/Introduction'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove unused import
@@ -64,13 +76,59 @@ const GraphDataHandler: React.FC = () => { | |||
}, [entities]); | |||
|
|||
useEffect(() => { | |||
const measurementId = process.env.REACT_APP_GA_MEASUREMENT_ID; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add back the Google Analytics measurement. We still need it for tracking purposes.
}); | ||
|
||
|
||
const GraphDataHandler: React.FC<{ categary: string|null }> = ({ categary }) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: 'categary' should be 'category'.
i18n, add chinese lang