Skip to content

Commit

Permalink
Merge pull request #45936 from code-dot-org/staging
Browse files Browse the repository at this point in the history
DTT (Staging > Test) [robo-dtt]
  • Loading branch information
deploy-code-org committed Apr 21, 2022
2 parents 4a11165 + dae98f7 commit 7f6fd84
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
11 changes: 11 additions & 0 deletions dashboard/app/views/i18n/_crowdin_in_context_tool.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-# The Crowdin In-Context tool (https://crowdin.com/project/codeorg/settings#in-context) allows
-# us to view original & translated strings in Crowdin.
-# "in-TL" is a pseudo-language locale where the Crowdin strings are stored
- if request.locale === "in-TL"
:javascript
var _jipt = [];
_jipt.push(['project', 'codeorg']);
_jipt.push(['escape', function() {
window.location.href = `${window.location.pathname}/lang/en-us`;
}]);
%script{type: "text/javascript", src: "//cdn.crowdin.com/jipt/jipt.js"}
10 changes: 1 addition & 9 deletions dashboard/app/views/layouts/application.html.haml
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
!!! 5
%html{dir: locale_dir}
%head
= render partial: 'i18n/crowdin_in_context_tool'
= render inline: File.read(Rails.root.join('..', 'shared', 'haml', 'onetrust_cookie_scripts.haml')), type: :haml, locals: {dashboard: true}

-# The Crowdin In-Context tool (https://crowdin.com/project/codeorg/settings#in-context) allows
-# us to view original & translated strings in Crowdin.
-# "in-TL" is a pseudo-language locale where the Crowdin strings are stored
- if request.locale === "in-TL"
:javascript
var _jipt = [];
_jipt.push(['project', 'codeorg']);
%script{type: "text/javascript", src: "//cdn.crowdin.com/jipt/jipt.js"}
-# Setup variables used by the Offline feature.
:javascript
window.OFFLINE_SERVICE_WORKER_PATH =
Expand Down

0 comments on commit 7f6fd84

Please sign in to comment.