Skip to content

feat: add translations for durations#156

Merged
DanielRivers merged 4 commits intomainfrom
feat/add-duration-translations
Dec 17, 2025
Merged

feat: add translations for durations#156
DanielRivers merged 4 commits intomainfrom
feat/add-duration-translations

Conversation

@DanielRivers
Copy link
Member

Explain your changes

Add translations for custom durations

Checklist

🛟 If you need help, consider asking for advice over in the Kinde community.

@DanielRivers DanielRivers requested a review from a team as a code owner December 11, 2025 14:55
@coderabbitai
Copy link

coderabbitai bot commented Dec 11, 2025

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters (32)
  • cs/auth.json is excluded by !**/*.json
  • da/auth.json is excluded by !**/*.json
  • de/auth.json is excluded by !**/*.json
  • el/auth.json is excluded by !**/*.json
  • en-GB/auth.json is excluded by !**/*.json
  • en-US/auth.json is excluded by !**/*.json
  • en/auth.json is excluded by !**/*.json
  • es/auth.json is excluded by !**/*.json
  • et/auth.json is excluded by !**/*.json
  • fr/auth.json is excluded by !**/*.json
  • he/auth.json is excluded by !**/*.json
  • hu/auth.json is excluded by !**/*.json
  • id/auth.json is excluded by !**/*.json
  • it/auth.json is excluded by !**/*.json
  • ja/auth.json is excluded by !**/*.json
  • ko/auth.json is excluded by !**/*.json
  • lt/auth.json is excluded by !**/*.json
  • lv/auth.json is excluded by !**/*.json
  • nl/auth.json is excluded by !**/*.json
  • pl/auth.json is excluded by !**/*.json
  • pt-BR/auth.json is excluded by !**/*.json
  • pt-PT/auth.json is excluded by !**/*.json
  • ro/auth.json is excluded by !**/*.json
  • ru/auth.json is excluded by !**/*.json
  • sk/auth.json is excluded by !**/*.json
  • sv/auth.json is excluded by !**/*.json
  • th/auth.json is excluded by !**/*.json
  • tr/auth.json is excluded by !**/*.json
  • uk/auth.json is excluded by !**/*.json
  • vi/auth.json is excluded by !**/*.json
  • zh-Hans/auth.json is excluded by !**/*.json
  • zh-Hant/auth.json is excluded by !**/*.json

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/add-duration-translations

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

coderabbitai[bot]
coderabbitai bot previously approved these changes Dec 11, 2025
@DanielRivers
Copy link
Member Author

JSON Translation Sync Results

Summary:

  • Files modified: 31
  • Files with errors: 0
  • Total target files processed: 31

Modified Files:

  • vi/auth.json
  • uk/auth.json
  • zh-Hant/auth.json
  • tr/auth.json
  • th/auth.json
  • sv/auth.json
  • zh-Hans/auth.json
  • sk/auth.json
  • ru/auth.json
  • ro/auth.json
  • pt-PT/auth.json
  • pt-BR/auth.json
  • pl/auth.json
  • nl/auth.json
  • lv/auth.json
  • lt/auth.json
  • ko/auth.json
  • ja/auth.json
  • it/auth.json
  • id/auth.json
  • hu/auth.json
  • he/auth.json
  • fr/auth.json
  • et/auth.json
  • es/auth.json
  • en-US/auth.json
  • en-GB/auth.json
  • el/auth.json
  • de/auth.json
  • da/auth.json
  • cs/auth.json

Files with Errors:
None

Log Output:

Calculating differences...
Calculated Differences: {
  "added": [
    {
      "path": "translations.general",
      "value": {
        "translate_context": "General simple messages",
        "time_hour": "1 hour",
        "time_hours": "hours",
        "time_minute": "1 minute",
        "time_minutes": "minutes",
        "time_zero_minutes": "0 minutes"
      }
    }
  ],
  "updated": [
    {
      "path": "translations.email_address_verification_email.email_body",
      "oldValue": "Hi there,\r\nPlease use the code below to confirm your email address and continue on ${business_name}. This code will expire in 2 hours. If you don't think you should be receiving this email, you can safely ignore it.",
      "newValue": "Hi there,\r\nPlease use the code below to confirm your email address and continue on ${business_name}. This code will expire in ${expiration_duration}. If you don't think you should be receiving this email, you can safely ignore it."
    }
  ],
  "deleted": []
}
Searching for target files with pattern: ./**/auth.json
Found target files: vi, uk, zh-Hant, tr, th, sv, zh-Hans, sk, ru, ro, pt-PT, pt-BR, pl, nl, lv, lt, ko, ja, it, id, hu, he, fr, et, es, en-US, en-GB, el, de, da, cs
➡️ Updating VI ...
➡️ Updating UK ...
➡️ Updating ZH-HANT ...
➡️ Updating TR ...
➡️ Updating TH ...
➡️ Updating SV ...
➡️ Updating ZH-HANS ...
➡️ Updating SK ...
➡️ Updating RU ...
➡️ Updating RO ...
➡️ Updating PT-PT ...
➡️ Updating PT-BR ...
➡️ Updating PL ...
➡️ Updating NL ...
➡️ Updating LV ...
➡️ Updating LT ...
➡️ Updating KO ...
➡️ Updating JA ...
➡️ Updating IT ...
➡️ Updating ID ...
➡️ Updating HU ...
➡️ Updating HE ...
➡️ Updating FR ...
➡️ Updating ET ...
➡️ Updating ES ...
➡️ Updating EN-US ...
➡️ Updating EN-GB ...
➡️ Updating EL ...
➡️ Updating DE ...
➡️ Updating DA ...
➡️ Updating CS ...
All target files synchronization and translation attempt complete!
Committing and pushing translated files...
checkout: feat/add-duration-translations
Successfully committed and pushed translated files.

coderabbitai[bot]
coderabbitai bot previously approved these changes Dec 11, 2025
"subscribe_button": "Předplatit a zaplatit nyní"
},
"general": {
"translate_context": "General simple messages",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we make the naming consistent as we have time_zero_minutes which contains the figure, but time_hours that doesn't and time_hour that does.

How about the following which allows us to also have time_hour later if we need it:

  "time_one_hour": "1 hodina",
  "time_hours": "hodiny",
  "time_one_minute": "1 minuta",
  "time_minutes": "minuty",
  "time_zero_minutes": "0 minut"

coderabbitai[bot]
coderabbitai bot previously approved these changes Dec 16, 2025
@DanielRivers
Copy link
Member Author

JSON Translation Sync Results

Summary:

  • Files modified: 31
  • Files with errors: 0
  • Total target files processed: 31

Modified Files:

  • zh-Hant/auth.json
  • zh-Hans/auth.json
  • vi/auth.json
  • uk/auth.json
  • tr/auth.json
  • th/auth.json
  • sv/auth.json
  • sk/auth.json
  • ru/auth.json
  • ro/auth.json
  • pt-PT/auth.json
  • pt-BR/auth.json
  • pl/auth.json
  • nl/auth.json
  • lv/auth.json
  • lt/auth.json
  • ko/auth.json
  • ja/auth.json
  • it/auth.json
  • id/auth.json
  • hu/auth.json
  • he/auth.json
  • fr/auth.json
  • et/auth.json
  • es/auth.json
  • en-US/auth.json
  • en-GB/auth.json
  • el/auth.json
  • de/auth.json
  • da/auth.json
  • cs/auth.json

Files with Errors:
None

Log Output:

Calculating differences...
Calculated Differences: {
  "added": [
    {
      "path": "translations.general",
      "value": {
        "translate_context": "General simple messages",
        "time_one_hour": "1 hour",
        "time_hours": "hours",
        "time_one_minute": "1 minute",
        "time_minutes": "minutes",
        "time_zero_minutes": "0 minutes"
      }
    }
  ],
  "updated": [
    {
      "path": "translations.email_address_verification_email.email_body",
      "oldValue": "Hi there,\r\nPlease use the code below to confirm your email address and continue on ${business_name}. This code will expire in 2 hours. If you don't think you should be receiving this email, you can safely ignore it.",
      "newValue": "Hi there,\r\nPlease use the code below to confirm your email address and continue on ${business_name}. This code will expire in ${expiration_duration}. If you don't think you should be receiving this email, you can safely ignore it."
    }
  ],
  "deleted": []
}
Searching for target files with pattern: ./**/auth.json
Found target files: zh-Hant, zh-Hans, vi, uk, tr, th, sv, sk, ru, ro, pt-PT, pt-BR, pl, nl, lv, lt, ko, ja, it, id, hu, he, fr, et, es, en-US, en-GB, el, de, da, cs
➡️ Updating ZH-HANT ...
➡️ Updating ZH-HANS ...
➡️ Updating VI ...
➡️ Updating UK ...
➡️ Updating TR ...
➡️ Updating TH ...
➡️ Updating SV ...
➡️ Updating SK ...
➡️ Updating RU ...
➡️ Updating RO ...
➡️ Updating PT-PT ...
➡️ Updating PT-BR ...
➡️ Updating PL ...
➡️ Updating NL ...
➡️ Updating LV ...
➡️ Updating LT ...
➡️ Updating KO ...
➡️ Updating JA ...
➡️ Updating IT ...
➡️ Updating ID ...
➡️ Updating HU ...
➡️ Updating HE ...
➡️ Updating FR ...
➡️ Updating ET ...
➡️ Updating ES ...
➡️ Updating EN-US ...
➡️ Updating EN-GB ...
➡️ Updating EL ...
➡️ Updating DE ...
➡️ Updating DA ...
➡️ Updating CS ...
All target files synchronization and translation attempt complete!
Committing and pushing translated files...
checkout: feat/add-duration-translations
Workflow Script Error: Command failed: git checkout feat/add-duration-translations
error: Your local changes to the following files would be overwritten by checkout:
	cs/auth.json
	da/auth.json
	de/auth.json
	el/auth.json
	en-GB/auth.json
	en-US/auth.json
	es/auth.json
	et/auth.json
	fr/auth.json
	he/auth.json
	hu/auth.json
	id/auth.json
	it/auth.json
	ja/auth.json
	ko/auth.json
	lt/auth.json
	lv/auth.json
	nl/auth.json
	pl/auth.json
	pt-BR/auth.json
	pt-PT/auth.json
	ro/auth.json
	ru/auth.json
	sk/auth.json
	sv/auth.json
	th/auth.json
	tr/auth.json
	uk/auth.json
	vi/auth.json
	zh-Hans/auth.json
	zh-Hant/auth.json
Please commit your changes or stash them before you switch branches.
Aborting

@DanielRivers
Copy link
Member Author

JSON Translation Sync Results

Summary:

  • Files modified: 31
  • Files with errors: 0
  • Total target files processed: 31

Modified Files:

  • zh-Hant/auth.json
  • zh-Hans/auth.json
  • vi/auth.json
  • uk/auth.json
  • tr/auth.json
  • th/auth.json
  • sv/auth.json
  • sk/auth.json
  • ru/auth.json
  • ro/auth.json
  • pt-PT/auth.json
  • pt-BR/auth.json
  • pl/auth.json
  • nl/auth.json
  • lv/auth.json
  • lt/auth.json
  • ko/auth.json
  • ja/auth.json
  • it/auth.json
  • id/auth.json
  • hu/auth.json
  • he/auth.json
  • fr/auth.json
  • et/auth.json
  • es/auth.json
  • en-US/auth.json
  • en-GB/auth.json
  • el/auth.json
  • de/auth.json
  • da/auth.json
  • cs/auth.json

Files with Errors:
None

Log Output:

Calculating differences...
Calculated Differences: {
  "added": [
    {
      "path": "translations.general",
      "value": {
        "translate_context": "General simple messages",
        "time_one_hour": "1 hour",
        "time_hours": "hours",
        "time_one_minute": "1 minute",
        "time_minutes": "minutes",
        "time_zero_minutes": "0 minutes"
      }
    }
  ],
  "updated": [
    {
      "path": "translations.email_address_verification_email.email_body",
      "oldValue": "Hi there,\r\nPlease use the code below to confirm your email address and continue on ${business_name}. This code will expire in 2 hours. If you don't think you should be receiving this email, you can safely ignore it.",
      "newValue": "Hi there,\r\nPlease use the code below to confirm your email address and continue on ${business_name}. This code will expire in ${expiration_duration}. If you don't think you should be receiving this email, you can safely ignore it."
    }
  ],
  "deleted": []
}
Searching for target files with pattern: ./**/auth.json
Found target files: zh-Hant, zh-Hans, vi, uk, tr, th, sv, sk, ru, ro, pt-PT, pt-BR, pl, nl, lv, lt, ko, ja, it, id, hu, he, fr, et, es, en-US, en-GB, el, de, da, cs
➡️ Updating ZH-HANT ...
➡️ Updating ZH-HANS ...
➡️ Updating VI ...
➡️ Updating UK ...
➡️ Updating TR ...
➡️ Updating TH ...
➡️ Updating SV ...
➡️ Updating SK ...
➡️ Updating RU ...
➡️ Updating RO ...
➡️ Updating PT-PT ...
➡️ Updating PT-BR ...
➡️ Updating PL ...
➡️ Updating NL ...
➡️ Updating LV ...
➡️ Updating LT ...
➡️ Updating KO ...
➡️ Updating JA ...
➡️ Updating IT ...
➡️ Updating ID ...
➡️ Updating HU ...
➡️ Updating HE ...
➡️ Updating FR ...
➡️ Updating ET ...
➡️ Updating ES ...
➡️ Updating EN-US ...
➡️ Updating EN-GB ...
➡️ Updating EL ...
➡️ Updating DE ...
➡️ Updating DA ...
➡️ Updating CS ...
All target files synchronization and translation attempt complete!
Committing and pushing translated files...
checkout: feat/add-duration-translations
Workflow Script Error: Command failed: git checkout feat/add-duration-translations
error: Your local changes to the following files would be overwritten by checkout:
	cs/auth.json
	da/auth.json
	de/auth.json
	el/auth.json
	en-GB/auth.json
	en-US/auth.json
	es/auth.json
	et/auth.json
	fr/auth.json
	he/auth.json
	hu/auth.json
	id/auth.json
	it/auth.json
	ja/auth.json
	ko/auth.json
	lt/auth.json
	lv/auth.json
	nl/auth.json
	pl/auth.json
	pt-BR/auth.json
	pt-PT/auth.json
	ro/auth.json
	ru/auth.json
	sk/auth.json
	sv/auth.json
	th/auth.json
	tr/auth.json
	uk/auth.json
	vi/auth.json
	zh-Hans/auth.json
	zh-Hant/auth.json
Please commit your changes or stash them before you switch branches.
Aborting

@DanielRivers DanielRivers merged commit 5465732 into main Dec 17, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants