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

Nijil/Added Indonesian language #2834

Merged
merged 2 commits into from
Jun 3, 2020
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
16 changes: 5 additions & 11 deletions gulp/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,7 @@ const customTransform = function _transform(file, enc, done) {
done();
};

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

gulp.task(
'i18n-xml',
Expand Down Expand Up @@ -86,13 +83,10 @@ gulp.task(
gulp.task(
'pull-blockly-translations',
gulp.series(done => {
const blocklyLanguages = ['en', 'de', 'it', 'vi', 'pl', 'ru', 'pt', 'es', 'fr', 'zh-hans', 'zh-hant'];
remoteSrc(
blocklyLanguages.map(lang => `${lang}.js?_=${Date.now()}`),
{
base: 'https://blockly-demo.appspot.com/static/msg/js/',
}
)
const blocklyLanguages = ['en', 'de', 'id', 'it', 'vi', 'pl', 'ru', 'pt', 'es', 'fr', 'zh-hans', 'zh-hant'];
remoteSrc(blocklyLanguages.map(lang => `${lang}.js?_=${Date.now()}`), {
base: 'https://blockly-demo.appspot.com/static/msg/js/',
})
.pipe(rename(path => (path.extname = '.js')))
.pipe(gulp.dest('www/translations'));
done();
Expand Down
42 changes: 21 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"webpack-stream": "^4.0.0"
},
"dependencies": {
"smartcharts-beta": "^0.8.0-betam.10",
"smartcharts-beta": "^0.8.0-betam.11",
"binary-style": "^0.2.4",
"blockly": "github:google/blockly#59e5ac6",
"clone": "aminmarashi/clone#d97b4f",
Expand Down
2 changes: 1 addition & 1 deletion src/common/elevio.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const Elevio = (() => {

// eslint-disable-next-line no-underscore-dangle
window._elev.on('load', elev => {
const availableLanguages = ['en', 'es', 'pt', 'ru'];
const availableLanguages = ['en', 'es', 'id', 'pt', 'ru'];
const currentLanguage = getLanguage();
if (availableLanguages.includes(currentLanguage)) {
elev.setLanguage(currentLanguage);
Expand Down
2 changes: 2 additions & 0 deletions src/common/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import es from './translations/es_ES/i10n.json';
import fr from './translations/fr_FR/i10n.json';
import en from './translations/en/i10n.json';
import ach from './translations/ach_UG/i10n.json';
import id from './translations/id_ID/i10n.json';

export const supportedLanguages = {
zh_tw: zhTw,
Expand All @@ -25,6 +26,7 @@ export const supportedLanguages = {
fr,
en,
ach,
id,
};

const fallbackLang = en;
Expand Down
1 change: 1 addition & 0 deletions templates/partials/language.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<li class="en">English</li>
<li class="de">Deutsch</li>
<li class="fr">Français</li>
<li class="id">Indonesia</li>
<li class="pl">Polish</li>
<li class="pt">Português</li>
<li class="ru">Русский</li>
Expand Down
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