Skip to content

Commit 384ad6d

Browse files
authored
Merge pull request #52 from howyi/main
Add Japanese (ja) language
2 parents 893e99d + 118e09e commit 384ad6d

19 files changed

+130
-13
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ Translations available:
184184
- *CS*
185185
- *NO*
186186
- *PT*
187+
- *JA*
187188

188189
Language should change automatically based on browser settings. Please create the pull-request if you want to help with translation to your language. It's an easy process.
189190

dist/es/pwa-install.es.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/es/pwa-install.es.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/pwa-install.bundle.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/pwa-install.bundle.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export declare const sourceLocale = "en";
2-
export declare const targetLocales: readonly ["cs", "de", "el", "es", "fr", "it", "nl", "no", "pl", "pt", "ru", "sr", "tr", "uk", "zh", "zh-CN"];
3-
export declare const allLocales: readonly ["cs", "de", "el", "en", "es", "fr", "it", "nl", "no", "pl", "pt", "ru", "sr", "tr", "uk", "zh", "zh-CN"];
2+
export declare const targetLocales: readonly ["cs", "de", "el", "es", "fr", "it", "ja", "nl", "no", "pl", "pt", "ru", "sr", "tr", "uk", "zh", "zh-CN"];
3+
export declare const allLocales: readonly ["cs", "de", "el", "en", "es", "fr", "it", "ja", "nl", "no", "pl", "pt", "ru", "sr", "tr", "uk", "zh", "zh-CN"];
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
export declare const templates: {
2+
s182ab2d6c997515f: string;
3+
s1b9047d53d9f9d22: string;
4+
s37a9e8aec5713460: string;
5+
s5c6aad7a7e4a1437: string;
6+
s6196153c4b0c1ea0: string;
7+
s922329d6f6213590: string;
8+
sa5ef80b4bb9b39f8: string;
9+
sa7551383d1897fcc: string;
10+
sba52286c21552a4e: string;
11+
sc79fd7641eb9a975: string;
12+
scdaf4bbff76674c8: string;
13+
sdfe23506a3b0cdc8: string;
14+
se740f75b95a51807: string;
15+
sfea652f6580ff086: string;
16+
};

dist/umd/pwa-install.umd.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/umd/pwa-install.umd.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/pwa-install.bundle.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/service-worker.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

i18n/ja.xlf

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
3+
<file target-language="ja" source-language="en" original="lit-localize-inputs" datatype="plaintext">
4+
<body>
5+
<trans-unit id="s6196153c4b0c1ea0">
6+
<source>Install</source>
7+
<target>インストール</target>
8+
</trans-unit>
9+
<trans-unit id="sfea652f6580ff086">
10+
<source>This site has app functionality.</source>
11+
<target>このサイトはアプリ機能があります。</target>
12+
</trans-unit>
13+
<trans-unit id="sba52286c21552a4e">
14+
<source>Install it on your device for extensive experience and easy access.</source>
15+
<target>デバイスにインストールすることで、より充実した体験と簡単なアクセスを実現できます。</target>
16+
</trans-unit>
17+
<trans-unit id="sa5ef80b4bb9b39f8">
18+
<source>Less</source>
19+
<target>折りたたむ</target>
20+
</trans-unit>
21+
<trans-unit id="s37a9e8aec5713460">
22+
<source>More</source>
23+
<target>展開</target>
24+
</trans-unit>
25+
<trans-unit id="se740f75b95a51807">
26+
<source>Add it to your Dock for extensive experience and easy access.</source>
27+
<target>ドックに追加して、幅広い体験と簡単なアクセスを実現してください。</target>
28+
</trans-unit>
29+
<trans-unit id="s182ab2d6c997515f">
30+
<source>Add it to your Home Screen for extensive experience and easy access.</source>
31+
<target>ホーム画面に追加して、幅広い体験と簡単なアクセスを実現してください。</target>
32+
</trans-unit>
33+
<trans-unit id="sdfe23506a3b0cdc8">
34+
<source>1) Open in Safari browser</source>
35+
<target>1) Safariで開く</target>
36+
</trans-unit>
37+
<trans-unit id="s1b9047d53d9f9d22">
38+
<source>2) Press Share in Navigation bar</source>
39+
<target>2) ナビゲーションバーで共有を押す</target>
40+
</trans-unit>
41+
<trans-unit id="sa7551383d1897fcc">
42+
<source>2) Press Add to Dock</source>
43+
<target>2) 「Dockに追加」を押す</target>
44+
</trans-unit>
45+
<trans-unit id="s5c6aad7a7e4a1437">
46+
<source>3) Press Add to Home Screen</source>
47+
<target>3) 「ホーム画面に追加」を押す</target>
48+
</trans-unit>
49+
<trans-unit id="sc79fd7641eb9a975">
50+
<source>Hide Instruction</source>
51+
<target>説明を非表示</target>
52+
</trans-unit>
53+
<trans-unit id="s922329d6f6213590">
54+
<source>Add to Dock</source>
55+
<target>Dockに追加</target>
56+
</trans-unit>
57+
<trans-unit id="scdaf4bbff76674c8">
58+
<source>Add to Home Screen</source>
59+
<target>ホーム画面に追加</target>
60+
</trans-unit>
61+
</body>
62+
</file>
63+
</xliff>

lit-localize.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"it",
1818
"cs",
1919
"no",
20-
"pt"
20+
"pt",
21+
"ja"
2122
],
2223
"tsConfig": "tsconfig.json",
2324
"output": {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@khmyznikov/pwa-install",
3-
"version": "0.3.5",
3+
"version": "0.3.6",
44
"description": "PWA install dialog provide more convenience user experience and fix lack of native dialogs in some browsers.",
55
"repository": {
66
"type": "git",

src/localization/index.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import * as it from "./locales/it";
2020
import * as cs from "./locales/cs";
2121
import * as no from "./locales/no";
2222
import * as pt from "./locales/pt";
23+
import * as ja from "./locales/ja";
2324

2425
const localizedTemplates = new Map([
2526
['ru', ru],
@@ -37,7 +38,8 @@ const localizedTemplates = new Map([
3738
['it', it],
3839
['cs', cs],
3940
['no', no],
40-
['pt', pt]
41+
['pt', pt],
42+
['ja', ja]
4143
])
4244

4345
export const { getLocale, setLocale } = configureLocalization({

src/localization/locale-codes.ts

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export const targetLocales = [
1717
`es`,
1818
`fr`,
1919
`it`,
20+
`ja`,
2021
`nl`,
2122
`no`,
2223
`pl`,
@@ -40,6 +41,7 @@ export const allLocales = [
4041
`es`,
4142
`fr`,
4243
`it`,
44+
`ja`,
4345
`nl`,
4446
`no`,
4547
`pl`,

src/localization/locales/ja.ts

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
// Do not modify this file by hand!
3+
// Re-generate this file by running lit-localize
4+
5+
6+
7+
8+
/* eslint-disable no-irregular-whitespace */
9+
/* eslint-disable @typescript-eslint/no-explicit-any */
10+
11+
export const templates = {
12+
's182ab2d6c997515f': `ホーム画面に追加して、幅広い体験と簡単なアクセスを実現してください。`,
13+
's1b9047d53d9f9d22': `2) ナビゲーションバーで共有を押す`,
14+
's37a9e8aec5713460': `展開`,
15+
's5c6aad7a7e4a1437': `3) 「ホーム画面に追加」を押す`,
16+
's6196153c4b0c1ea0': `インストール`,
17+
's922329d6f6213590': `Dockに追加`,
18+
'sa5ef80b4bb9b39f8': `折りたたむ`,
19+
'sa7551383d1897fcc': `2) 「Dockに追加」を押す`,
20+
'sba52286c21552a4e': `デバイスにインストールすることで、より充実した体験と簡単なアクセスを実現できます。`,
21+
'sc79fd7641eb9a975': `説明を非表示`,
22+
'scdaf4bbff76674c8': `ホーム画面に追加`,
23+
'sdfe23506a3b0cdc8': `1) Safariで開く`,
24+
'se740f75b95a51807': `ドックに追加して、幅広い体験と簡単なアクセスを実現してください。`,
25+
'sfea652f6580ff086': `このサイトはアプリ機能があります。`,
26+
};
27+

src/templates/apple/styles-apple.scss

+1
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@
448448

449449
padding-top: 10px;
450450
border-bottom: 1px solid var(--border-bottom-color);
451+
min-width: 100%;
451452
}
452453
}
453454
.welcome-to-install, .about .description{

src/templates/chrome/styles.scss

+4
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@
107107
word-break: break-all;
108108
white-space: nowrap;
109109
}
110+
111+
& + hr{
112+
margin-top: 10px;
113+
}
110114
}
111115

112116
.description{

0 commit comments

Comments
 (0)