-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add trnaslations that contain html values * Attempt refactor stimulus controller * Refactor element swapping * Rename non-code wrapper to text wrapper * Fix swap elements * Revert controller changes * Revert translation form * Update gem version * Update changelog * Implement html wrapper * Readd frozen string literal * Fix linter * Rename translation * Revert engine * Update form * Handle unknwn * Handle missing translations * refactor is_missing_translation * refactor span to textarea * refactor matching helper * Refactor view * Revert frozen string literal * Revert changes * Fix linter
- Loading branch information
1 parent
8f1f15b
commit 237e9b6
Showing
7 changed files
with
22 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<span | ||
contenteditable | ||
contenteditable | ||
data-action="blur->moirai-translation#submit click->moirai-translation#click" | ||
style="border: 1px dashed #1d9f74; min-width: 30px; display: inline-block;" | ||
style="outline: 1px solid #1d9f74; min-width: 30px; display: inline-block; <%= 'color: red;' if is_missing_translation %>" | ||
data-moirai-translation-key-value="<%= key %>" | ||
data-moirai-translation-locale-value="<%= locale %>" | ||
data-controller="moirai-translation"> | ||
<%= value %> | ||
<%= value.to_s.gsub("<", "<").gsub(">", ">").html_safe %> | ||
</span> |
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 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