fairyglade / ly

display manager with console UI
Do What The F*ck You Want To Public License
5.47k stars 305 forks source link

Adds Farsi Bigclock #673

Closed KAYT33N closed 3 months ago

KAYT33N commented 3 months ago

Hi I'll open up what each commit does

1. Change config type for bigclock

This used to be a "on/off" boolean and I had to either add a new value for language or change this to enum So I changed it from boolean to enum with following values "none (default)", "en", "fa"

2. Separates big clock's hard codes from its logic

"bigclock.zig" file was already too big to have another language added to it so I separated the clock chars from the functions This also makes adding new regional or custom numbers sets as easy as filling the "bigclock.Lang.LocaleChars" struct

3. Adds Farsi (fa) to big clock langs

This commit creates "fa.zig" file and registers it in codes

Screenshot

image

Time was : 01:35 -> ۰۱:۳۵

KAYT33N commented 3 months ago

@AnErrupTion Rebased with master Thanks for the help on doing this

AnErrupTion commented 3 months ago

Thanks for your contribution!