i18n key updates in app/liquid_tags (#16275)
This commit is contained in:
parent
2b3f4e1342
commit
cae8ea2deb
4 changed files with 10 additions and 4 deletions
|
|
@ -53,7 +53,7 @@ class TweetTag < LiquidTagBase
|
|||
|
||||
def parse_id_or_url(input)
|
||||
match = pattern_match_for(input, REGEXP_OPTIONS)
|
||||
raise StandardError, "Invalid Tweet ID or URL" unless match
|
||||
raise StandardError, I18n.t("liquid_tags.tweet_tag.invalid_twitter_id") unless match
|
||||
|
||||
match[:id]
|
||||
end
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ module UnifiedEmbed
|
|||
# notice that they didn't have a rich embed and instead published a basic
|
||||
# A-tag. In addition, said A-tag would goes nowhere; which may confuse
|
||||
# users and/or Forem readers.
|
||||
raise StandardError, "Embed URL not valid" unless klass
|
||||
raise StandardError, I18n.t("liquid_tags.unified_embed.tag.invalid_url") unless klass
|
||||
|
||||
# Why the __send__? Because a LiquidTagBase class "privatizes"
|
||||
# the `.new` method. And we want to instantiate the specific
|
||||
|
|
|
|||
|
|
@ -90,11 +90,14 @@ en:
|
|||
tag_tag:
|
||||
invalid_tag_name: invalid tag name
|
||||
tweet_tag:
|
||||
invalid_twitter_id: Invalid Twitter Id
|
||||
invalid_twitter_id: Invalid Twitter ID or URL
|
||||
twitch_tag:
|
||||
invalid_twitch_id: Invalid Twitch ID, Slug or URL
|
||||
twitter_timeline_tag:
|
||||
invalid_url: Invalid Twitter Timeline URL
|
||||
unified_embed:
|
||||
tag:
|
||||
invalid_url: Embed URL not valid
|
||||
user_subscription_tag:
|
||||
submit: Submit
|
||||
submitting: Submitting...
|
||||
|
|
|
|||
|
|
@ -90,11 +90,14 @@ fr:
|
|||
tag_tag:
|
||||
invalid_tag_name: invalid tag name
|
||||
tweet_tag:
|
||||
invalid_twitter_id: Invalid Twitter Id
|
||||
invalid_twitter_id: Invalid Twitter ID or URL
|
||||
twitch_tag:
|
||||
invalid_twitch_id: Invalid Twitch ID, Slug or URL
|
||||
twitter_timeline_tag:
|
||||
invalid_url: Invalid Twitter Timeline URL
|
||||
unified_embed:
|
||||
tag:
|
||||
invalid_url: Embed URL not valid
|
||||
user_subscription_tag:
|
||||
submit: Submit
|
||||
submitting: Submitting...
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue