-
Notifications
You must be signed in to change notification settings - Fork 482
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Revert "AO3-4555 Update phrase app intergration""
- Loading branch information
Showing
8 changed files
with
44 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
PhraseApp::InContextEditor.configure do |config| | ||
# Enable or disable the In-Context-Editor in general | ||
if ENV['AO3_PHRASE_APP'] == 'true' || ArchiveConfig.PHRASEAPP_ENABLE == 'true' then | ||
config.enabled = true | ||
else | ||
config.enabled = false | ||
end | ||
|
||
# Fetch your project id after creating your first project | ||
# in Translation Center. | ||
# You can find the project id in your project settings | ||
# page (https://phraseapp.com/projects) | ||
config.project_id = "47f2a1b0cf81df327878c6d89cee7af3" | ||
|
||
# You can create and manage access tokens in your profile settings | ||
# in Translation Center or via the Authorizations API | ||
# (http://docs.phraseapp.com/api/v2/authorizations/). | ||
config.access_token = ArchiveConfig.PHRASEAPP_TOKEN | ||
|
||
# Configure an array of key names that should not be handled | ||
# by the In-Context-Editor. | ||
config.ignored_keys = ["number.*", "breadcrumb.*"] | ||
|
||
# PhraseApp uses decorators to generate a unique identification key | ||
# in context of your document. However, this might result in conflicts | ||
# with other libraries (e.g. client-side template engines) that use a similar syntax. | ||
# If you encounter this problem, you might want to change this decorator pattern. | ||
# More information: http://docs.phraseapp.com/guides/in-context-editor/configure/ | ||
# config.prefix = "{{__" | ||
# config.suffix = "__}}" | ||
end |