Skip to content

Conversation

@dodog
Copy link
Contributor

@dodog dodog commented Oct 30, 2025

First of all, thank you for this fronted.
I translated it into Slovak because it was missing there.
It is a manual translation, not a translation using AI.

Add Slovak language
@Nerivec
Copy link
Owner

Nerivec commented Oct 31, 2025

It looks like the language is not supported by the time library used by WindFront:
https://github.com/hustcc/timeago.js/tree/master/src/lang
You can PR there, but in meantime, could you translate these, so I can register a custom language?

    ['just now', 'right now'],
    ['%s seconds ago', 'in %s seconds'],
    ['1 minute ago', 'in 1 minute'],
    ['%s minutes ago', 'in %s minutes'],
    ['1 hour ago', 'in 1 hour'],
    ['%s hours ago', 'in %s hours'],
    ['1 day ago', 'in 1 day'],
    ['%s days ago', 'in %s days'],
    ['1 week ago', 'in 1 week'],
    ['%s weeks ago', 'in %s weeks'],
    ['1 month ago', 'in 1 month'],
    ['%s months ago', 'in %s months'],
    ['1 year ago', 'in 1 year'],
    ['%s years ago', 'in %s years']

@dodog
Copy link
Contributor Author

dodog commented Oct 31, 2025

Yes, sure.
I realised it also, I am working on PR. Meanwhile:

    [['práve teraz', 'práve teraz']],
    [['pred %s sekundami', 'o %s sekundy'], ['pred %s sekundami', 'o %s sekúnd']],
    [['pred minútou', 'o minútu']],
    [['pred %s minútami', 'o %s minúty'], ['pred %s minútami', 'o %s minút']],
    [['pred hodinou', 'o hodinu']],
    [['pred %s hodinami', 'o %s hodiny'], ['pred %s hodinami', 'o %s hodín']],
    [['včera', 'zajtra']],
    [['pred %s dňami', 'o %s dni'], ['pred %s dňami', 'o %s dní']],
    [['minulý týždeň', 'budúci týždeň']],
    [['pred %s týždňami', 'o %s týždne'], ['pred %s týždňami', 'o %s týždňov']],
    [['minulý mesiac', 'budúci mesiac']],
    [['pred %s mesiacmi', 'o %s mesiace'], ['pred %s mesiacmi', 'o %s mesiacov']],
    [['pred rokom', 'budúci rok']],
    [['pred %s rokmi', 'o %s roky'], ['pred %s rokmi', 'o %s rokov']],
    

@Nerivec
Copy link
Owner

Nerivec commented Oct 31, 2025

I used the same inflection logic as https://github.com/hustcc/timeago.js/blob/master/src/lang/cs.ts
Can you let me know if number >= 5 is correct here too?

@dodog
Copy link
Contributor Author

dodog commented Oct 31, 2025

Yes, it is basically the same inflection logic as in Czech. 5 is correct too.

@Nerivec Nerivec merged commit 5585dc4 into Nerivec:main Oct 31, 2025
2 checks passed
@Nerivec
Copy link
Owner

Nerivec commented Oct 31, 2025

Thanks!

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