New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(l10n): rename weekday_year_*
to weekday_cycle_*
#405
base: dev
Are you sure you want to change the base?
Conversation
@emagnier, one test fails when using I also considered renaming cycle = {
proper?: {
time?: string,
time?: string,
},
synday_cycle?: {
year_a?: string,
year_b?: string,
year_c?: string
},
weekday_cycle?: {
cycle_1?: string,
cycle_2?: string
},
psalter_cycle: {
week_1?: string,
week_2?: string,
week_3?: string,
week_4?: string
}
} |
Just renaming these keys are not enough. You also need to modify the corresponding constants here: romcal/lib/constants/cycles.ts Lines 58 to 61 in ec5b030
You should try to run romcal locally, and check the computed localized labels. FYI, snapshots tests added here #404 are testing computed data without localized metadata (this is why tests are keeping running happily, but this might be something to note, to add coverage on this topic here). |
be4863f
to
4925a8c
Compare
@emagnier, sorry for late reply, I’ve been busy at work. 😉
I was a bit of a mental exercise to me in order to understand why that is required. I understand that there needs to be a place where the weekday localisation is done, however, I wanted to understand why it is needed to change it there. Now I understand why it is required to do there! 🙏
I haven’t actually tested it with snapshots yet. 😉 Now I have fixed that and updated the snapshots. 😉 |
4925a8c
to
2a6ac9b
Compare
On a second thought, I'm ultimately not too sure about this modification. I find it good to keep the reference of the year in this property name (the time unit of this cycle). Like |
Well, I get you say. Your idea it to keep the unit in the names (in the codebase only or also in the localised strings?), my idea is to keep the name (and usage) in sync with the official name if possible. Now, I re-searched what is the current name of the cycles. According to USCCB, the word cycle is used for both Sunday and weekday cycles, but (as I now understand it) the cycle is a multi-year period, therefore a Sunday cycle is a three-year period and a weekday cycle is a two-year period. Then, each year in a cycle has its name: Year A-C in Sunday cycle and Year I-II in weekday cycle. Based on this logic, whenever we talk about the whole multi-year period, we should use the term cycle; when we talk about a year of that period, then we should use the term year. Therefore And this is the case already, although we use Anyway, I have no idea how to get the localised cycle name (any cycle, like Sunday/weekday/psalter). How can I get it? 🙏 |
Thank you for this last message and sharing your thought.
-> In the codebase only. The localized strings should reflect the language usages, as it is now. I'm not against |
Agreed.
Agreed. Therefore, I’d like this to be changed before stable |
weekday_year_*
to weekday_cycle_*
weekday_year_*
to weekday_cycle_*
No description provided.