Skip to content

Commit 026283f

Browse files
authored
Merge pull request #866 from remap-keys/release-announce-for-i18n
Announce Japanese Language support.
2 parents e8a965f + 3f9c60b commit 026283f

File tree

4 files changed

+66
-0
lines changed

4 files changed

+66
-0
lines changed

src/components/documents/Documents.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import Encoders from './encoders/Encoders';
1818
import Build from './build/Build';
1919
import SupportCodeEditing from './support-code-editing/SupportCodeEditing';
2020
import Statistics from './statistics/Statistics';
21+
import Internationalization from './i18n/Internationalization';
2122

2223
type RouteParams = {
2324
docId: string;
@@ -66,6 +67,9 @@ export default function Documents(props: DocumentsPropsType) {
6667
} else if (docId === 'statistics') {
6768
page = <Statistics />;
6869
sendEventToGoogleAnalytics('docs/statistics');
70+
} else if (docId === 'i18n') {
71+
page = <Internationalization />;
72+
sendEventToGoogleAnalytics('docs/statistics');
6973
} else {
7074
page = <Index />;
7175
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
import React from 'react';
2+
import { Typography } from '@mui/material';
3+
4+
export default function Internationalization() {
5+
return (
6+
<React.Fragment>
7+
<Typography variant="h3">Japanese Language Support</Typography>
8+
<section>
9+
<Typography variant="body1" gutterBottom={true}>
10+
Remap has always been available in English only, but now it also
11+
supports Japanese. If your web browser&apos;s language is set to
12+
Japanese, Remap will automatically be displayed in Japanese. This
13+
update enhances convenience for users whose native language is
14+
Japanese.
15+
</Typography>
16+
<Typography variant="body1" gutterBottom={true}>
17+
If you prefer Japanese but the interface is still in English, please
18+
check whether your web browser&apos;s language settings are set to
19+
Japanese. Additionally, verify that your OS language settings are also
20+
set to Japanese.
21+
</Typography>
22+
<Typography variant="body1" gutterBottom={true}>
23+
If you wish to continue using Remap in English, you can do one of the
24+
following:
25+
<ul>
26+
<li>
27+
Change your web browser&apos;s language settings to English.
28+
</li>
29+
<li>
30+
Add <code>?lng=en</code> to the end of the URL when accessing
31+
Remap.
32+
</li>
33+
</ul>
34+
</Typography>
35+
<Typography variant="body1" gutterBottom={true}>
36+
By appending <code>?lng=en</code> or <code>?lng=ja</code> to the URL,
37+
you can force Remap to display in the specified language. The selected
38+
language will be remembered the next time you access Remap.
39+
Specifically, the language setting is stored in{' '}
40+
<code>localStorage</code> under the key name <code>i18nextLng</code>.
41+
If you encounter any issues, try deleting the
42+
<code>i18nextLng</code> entry from <code>localStorage</code>.
43+
</Typography>
44+
</section>
45+
</React.Fragment>
46+
);
47+
}

src/components/documents/index/Index.tsx

+5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ export default function Index() {
77
<Paper>
88
<Typography variant="h3">News</Typography>
99
<section>
10+
<Typography variant="body1" gutterBottom={true}>
11+
<Link href="/docs/i18n">
12+
[Feb 26th, 2025] Japanese Language Support
13+
</Link>
14+
</Typography>
1015
<Typography variant="body1" gutterBottom={true}>
1116
<Link href="/docs/statistics">
1217
[Dec 19th, 2023] The statistics feature is available

src/components/top/Top.tsx

+10
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@ import './Top.scss';
1717
import { TopActionsType, TopStateType } from './Top.container';
1818
import { useNavigate } from 'react-router';
1919
import {
20+
Alert,
2021
AppBar,
2122
Button,
2223
Card,
2324
CardContent,
2425
Container,
2526
CssBaseline,
2627
Grid,
28+
Link,
2729
Toolbar,
2830
Typography,
2931
} from '@mui/material';
@@ -92,6 +94,14 @@ export default function Top(props: TopPropsType) {
9294
<Logo width={128} color={'white'} />
9395
</Toolbar>
9496
</AppBar>
97+
<Alert severity="info">
98+
<strong>Info: </strong>
99+
[Feb 26th, 2025] Japanese Language Support. See{' '}
100+
<Link href="/docs/i18n" target="_blank">
101+
for more details
102+
</Link>{' '}
103+
.
104+
</Alert>
95105
<main>
96106
<div className="hero-content">
97107
<Container maxWidth="xl">

0 commit comments

Comments
 (0)