Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit 08ec768

Browse files
author
Aaron
authored
Merge pull request #2834 from nijil-binary/lang-indonesia
Nijil/Added Indonesian language
2 parents f13a21a + 7894903 commit 08ec768

File tree

6 files changed

+31
-34
lines changed

6 files changed

+31
-34
lines changed

gulp/i18n.js

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,7 @@ const customTransform = function _transform(file, enc, done) {
4848
done();
4949
};
5050

51-
gulp.task(
52-
'clean-i18n',
53-
gulp.series(() => gulp.src(['src/common/translations/en/*']).pipe(paths(del)))
54-
);
51+
gulp.task('clean-i18n', gulp.series(() => gulp.src(['src/common/translations/en/*']).pipe(paths(del))));
5552

5653
gulp.task(
5754
'i18n-xml',
@@ -86,13 +83,10 @@ gulp.task(
8683
gulp.task(
8784
'pull-blockly-translations',
8885
gulp.series(done => {
89-
const blocklyLanguages = ['en', 'de', 'it', 'vi', 'pl', 'ru', 'pt', 'es', 'fr', 'zh-hans', 'zh-hant'];
90-
remoteSrc(
91-
blocklyLanguages.map(lang => `${lang}.js?_=${Date.now()}`),
92-
{
93-
base: 'https://blockly-demo.appspot.com/static/msg/js/',
94-
}
95-
)
86+
const blocklyLanguages = ['en', 'de', 'id', 'it', 'vi', 'pl', 'ru', 'pt', 'es', 'fr', 'zh-hans', 'zh-hant'];
87+
remoteSrc(blocklyLanguages.map(lang => `${lang}.js?_=${Date.now()}`), {
88+
base: 'https://blockly-demo.appspot.com/static/msg/js/',
89+
})
9690
.pipe(rename(path => (path.extname = '.js')))
9791
.pipe(gulp.dest('www/translations'));
9892
done();

package-lock.json

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
"webpack-stream": "^4.0.0"
104104
},
105105
"dependencies": {
106-
"smartcharts-beta": "^0.8.0-betam.10",
106+
"smartcharts-beta": "^0.8.0-betam.11",
107107
"binary-style": "^0.2.4",
108108
"blockly": "github:google/blockly#59e5ac6",
109109
"clone": "aminmarashi/clone#d97b4f",

src/common/elevio.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const Elevio = (() => {
2020

2121
// eslint-disable-next-line no-underscore-dangle
2222
window._elev.on('load', elev => {
23-
const availableLanguages = ['en', 'es', 'pt', 'ru'];
23+
const availableLanguages = ['en', 'es', 'id', 'pt', 'ru'];
2424
const currentLanguage = getLanguage();
2525
if (availableLanguages.includes(currentLanguage)) {
2626
elev.setLanguage(currentLanguage);

src/common/i18n.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import es from './translations/es_ES/i10n.json';
1111
import fr from './translations/fr_FR/i10n.json';
1212
import en from './translations/en/i10n.json';
1313
import ach from './translations/ach_UG/i10n.json';
14+
import id from './translations/id_ID/i10n.json';
1415

1516
export const supportedLanguages = {
1617
zh_tw: zhTw,
@@ -25,6 +26,7 @@ export const supportedLanguages = {
2526
fr,
2627
en,
2728
ach,
29+
id,
2830
};
2931

3032
const fallbackLang = en;

templates/partials/language.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<li class="en">English</li>
1616
<li class="de">Deutsch</li>
1717
<li class="fr">Français</li>
18+
<li class="id">Indonesia</li>
1819
<li class="pl">Polish</li>
1920
<li class="pt">Português</li>
2021
<li class="ru">Русский</li>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy