forge
Explore
Log in

Don't you dare go Hollow

forge

Clone
★ 0

0 watching0 forksRustAGPL-3.010.2 MiB8298537Tahinli20 minutes ago332 commits

timeline.rs29 lines, 726 bytesHistoryRawDownload
1use super::Lang;
2
3strings! {
4 K;
5 AllRuns => "All runs", "Tüm çalıştırmalar";
6}
7
8pub fn last_commits(lang: Lang, n: usize) -> String {
9 match lang {
10 Lang::En => format!("Last {n} commits"),
11 Lang::Tr => format!("Son {n} commit"),
12 }
13}
14
15pub fn commit_count(lang: Lang, n: u64) -> String {
16 match lang {
17 Lang::En if n == 1 => "1 commit".to_owned(),
18 Lang::En => format!("{n} commits"),
19 Lang::Tr => format!("{n} commit"),
20 }
21}
22
23pub fn lines_changed(lang: Lang, n: u64) -> String {
24 match lang {
25 Lang::En if n == 1 => "1 line changed".to_owned(),
26 Lang::En => format!("{n} lines changed"),
27 Lang::Tr => format!("{n} satır değişti"),
28 }
29}