-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
52 additions
and
27 deletions.
There are no files selected for viewing
16 changes: 8 additions & 8 deletions
16
lib/i18n-spec/matchers/have_interpolation_keys_of_matcher.rb
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module I18nSpec | ||
class Parse | ||
|
||
def self.for_interpolation_variables(str) | ||
return nil if str.nil? | ||
str.scan(/%{[^%{}]*}/) | ||
end | ||
|
||
end | ||
end |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
es: | ||
cats: | ||
zero: 'no gatos' | ||
one: 'un gato' | ||
other: 'gatos' | ||
itteh: | ||
bitteh: | ||
ceiling: | ||
kitteh: 'te mira' | ||
group: | ||
joined: "(interpolation should var should be here) unido correctamente" |
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,11 @@ | ||
es: | ||
cats: | ||
zero: 'no gatos' | ||
one: 'un gato' | ||
other: '%{count } gatos' | ||
itteh: | ||
bitteh: | ||
ceiling: | ||
kitteh: 'te mira' | ||
group: | ||
joined: "%{user_name} unido correctamente %{groupo}" |
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