-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit addresses feedback from the Welsh translation changes in issue #233. Specifically, we need to apply Welsh consonant mutations in some cases. The mechanism this commit adds is possibly more than is needed for the presenting issue, but we are expecting more mutions to be needed in future. This change addresses the feedback that some months should be mutated. E.g: O Mai should become: O Fai
- Loading branch information
1 parent
4ea9fba
commit 2824a08
Showing
5 changed files
with
57 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# frozen_string_literal: true | ||
|
||
# Entry wrapper for applying generalised grammar rules. Mostly | ||
# this will be used for Welsh grammar actions, such as consonant | ||
# mutations | ||
class Grammar | ||
def self.apply(options) | ||
grammar_action = WelshGrammar.apply(options) if I18n.locale == :cy | ||
|
||
grammar_action || GrammarAction.identity_action(options) | ||
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
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