Skip to content

Commit

Permalink
Added configuration for translations.
Browse files Browse the repository at this point in the history
Removed snap deploy provider.
  • Loading branch information
imolorhe committed Jul 27, 2018
1 parent 3613eb1 commit 9c2690d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ deploy:
skip_cleanup: true
on:
branch: master
- provider: snap
file_glob: true
snap: out/make/*.snap
channel: edge
skip_cleanup: true
on:
tags: true
# - provider: snap
# file_glob: true
# snap: out/make/*.snap
# channel: edge
# skip_cleanup: true
# on:
# tags: true
15 changes: 15 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,21 @@
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<script>
if (location.hash === '#translate') {
// Insert crowdin translation script.
var _jipt = [];
_jipt.push(['project', 'altair-gql']);

// Insert script tag
var head = document.getElementsByTagName('head')[0];
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = '//cdn.crowdin.com/jipt/jipt.js';
head.appendChild(script);
window.__ALTAIR_TRANSLATE__ = 1;
}
</script>
<app-root>
<style>
.loading-screen{
Expand Down

0 comments on commit 9c2690d

Please sign in to comment.