Repository navigation
feat: time calculator in Turkish - #31
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
/tr/saat-hesaplama/, a Turkish time calculator. Everything runs in the page; the CSP is unchanged.What the page does
/tr/gun-hesaplama/and/tr/is-gunu-hesaplama/.lang: "tr"and the "Turkish" badge, with noalternates.Files:
src/saat.js(pure logic),test/saat.test.mjs,src/saat-hesaplama.js(page script, added toSCRIPTS),saatToolinscripts/build.mjs, the TOOLS entry and page inscripts/content.mjs, an og card, browser checks, and a little CSS for the minute table.Semrush (Turkiye, checked 2026-12-04)
SERP top 10 for "saat hesaplama": onlinealarmkur.com/hours/, hesaplama.app/saat-farki, zaman-farki.hesaplama.net, hesapsonuc.com/saat-hesaplama, hangihesaplama.com saat-sure-hesaplama, a YouTube video, epochconverter.com/tr/tarih-farki, calkoo.com/tr/iki-saat-arasi-hesaplama, kariyer.net saat-farki-hesaplama, a Play Store app. SERP features: AI Overview, video.
No English data was gathered.
Page metadata: title "Saat hesaplama: iki saat arası süre ve mesai hesabı" (51 chars), description 142 chars, H1 "İki saat arası süre hesaplama".
Checks
npm test: 226 pass, 0 fail. This includes 10 new tests covering parsing, midnight crossing, a break longer than the span, negative shifts across several days, minute overflow and decimal-hour rounding.npm run build: 30 pages, 21 tools.saatblock at 1280 and 390 px and the index/404 blocks (21 tool cards, link to saat hesaplama) pass with no horizontal scroll, console errors or CSP violations. Screenshots at both widths were reviewed.npm run checkstops on this machine at the existing text repeater step that fills a 5 MB output (page.fill30 s timeout at browser-check.mjs:631). The same timeout happens onmainwhen only that block runs, so it is not caused by this change. With those two lines skipped in a temporary copy, every other block passes.npm run og: rendered and reviewedpublic/og/saat-hesaplama.png. The other cards were reverted to their committed bytes.