04Untranslated Korean left behind
A scan line sweeps down the English lines, dyeing only the hangul syllables red as it passes, while a residue counter ticks up with each hit.
Best forAfter running machine translation, when Korean still shows through on the English page
/[가-힣]/ 정규식비-ko 파일 스캔잔존 카운트

<main class="stage is-demo">
<div class="doc">
<header class="doc__head"><span class="doc__name">en.json</span></header>
<ul class="doc__rows">
<li class="ln" style="--i:0"><span class="ln__txt" data-t='"welcome": "Welcome back!"'></span></li>
<li class="ln" style="--i:1"><span class="ln__txt" data-t='"orders": "View your orders"'></span></li>
<li class="ln ln--hit" style="--i:2"><span class="ln__txt" data-t='"shipping": "배송이 시작되었습니다."'></span></li>
<li class="ln" style="--i:3"><span class="ln__txt" data-t='"account": "My account"'></span></li>
<li class="ln ln--hit" style="--i:4"><span class="ln__txt" data-t='"refund": "환불이 처리되었습니다."'></span></li>
</ul>
<span class="doc__scan"></span>
<p class="doc__badge">2 Korean strings left</p>
</div>
</main>@use "../../../../site/static/demo-tokens" as *;
// ── 변수 3개 ──────────────────────────────────────────
$duration: $dur-loop; // 2s — 스캔 한 주기
$easing: $ease-out;
$color: $subject-blue; // 스캔 라인
@include stage($stage-paper);
.doc {
position: relative;
width: min(410px, 94vw);
border-radius: $r-card;
background: $subject-cream;
box-shadow: $shadow-raised;
border: 2px solid rgba($subject-ink, .10);
overflow: hidden;
}
.doc__head {
padding: $sp-1 $sp-3;
border-bottom: 2px solid rgba($subject-ink, .10);
}
.doc__name {
font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
font-size: clamp(10px, 2.4vw, 13px);
font-weight: 700;
color: $subject-ink;
}
.doc__rows {
list-style: none;
margin: 0;
padding: $sp-2 $sp-3 $sp-2;
display: grid;
row-gap: $sp-1;
}
.ln {
border-radius: $r-xs;
padding: $sp-1;
min-height: clamp(18px, 6vw, 30px);
display: flex;
align-items: center;
}
.ln__txt {
font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
font-size: clamp(8.5px, 2.1vw, 12.5px);
color: $subject-ink;
white-space: nowrap;
}
.ln__txt::before { content: attr(data-t); }
.doc__scan {
position: absolute;
inset: 0;
pointer-events: none;
background: linear-gradient(to bottom,
transparent 0 calc(50% - 7px),
rgba($color, .30) calc(50% - 7px) calc(50% + 7px),
transparent calc(50% + 7px) 100%);
background-size: 100% 220%;
opacity: 0;
}
.doc__badge {
position: absolute;
right: $sp-2;
bottom: $sp-2;
margin: 0;
border-radius: $r-pill;
background: $error;
color: #fff;
font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
font-size: clamp(10px, 2.4vw, 13px);
font-weight: 800;
padding: $sp-1 $sp-3;
box-shadow: $shadow-press;
}
// 스캔 라인이 내려가며 줄을 훑고, 한글 줄은 지나가는 순간 붉게 굳는다
.stage.is-demo .doc__scan { animation: scan-down $duration $easing infinite; }
.stage.is-demo .ln { animation: ln-pass $duration linear infinite; animation-delay: calc(var(--i) * .19s); }
.stage.is-demo .ln--hit { animation-name: ln-hit; }
.stage.is-demo .doc__badge { animation: badge-in $duration $ease-pop infinite; }
@keyframes scan-down {
0% { opacity: 1; background-position: 0 -130%; }
70% { opacity: 1; background-position: 0 130%; }
75%, 100% { opacity: 0; background-position: 0 130%; }
}
@keyframes ln-pass {
0%, 6% { background: transparent; }
15% { background: rgba($color, .18); }
26%, 100% { background: transparent; }
}
@keyframes ln-hit {
0%, 6% { background: transparent; }
15% { background: rgba($error, .45); }
26% { background: rgba($error, .18); }
36% { background: rgba($error, .45); }
46%, 100% { background: rgba($error, .32); }
}
@keyframes badge-in {
0%, 64% { transform: scale(0) translateY(4px); opacity: 0; }
72% { transform: scale(1.2) translateY(0); opacity: 1; }
78%, 95%{ transform: scale(1) translateY(0); opacity: 1; }
100% { transform: scale(.5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
.stage.is-demo .doc__scan,
.stage.is-demo .ln,
.stage.is-demo .doc__badge { animation: none; }
.doc__scan { opacity: 0; }
.ln--hit { background: rgba($error, .32); }
}
// 좁은 화면(320px 검수) — 줄 간격을 줄여 세로로 맞춘다
@media (max-width: 359px) {
.doc__head { padding: 0 $sp-2; }
.doc__rows { padding: $sp-1 $sp-2; row-gap: $sp-1; }
.ln { min-height: 16px; padding: 0; }
}html, body {
margin: 0;
overflow: hidden;
}
.stage {
box-sizing: border-box;
min-height: 100vh;
display: grid;
place-items: center;
margin: 0;
background: #ffffff;
font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
padding: clamp(8px, 4vw, 24px);
}
.doc {
position: relative;
width: min(410px, 94vw);
border-radius: 16px;
background: #fff7e6;
box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
border: 2px solid rgba(23, 20, 26, 0.1);
overflow: hidden;
}
.doc__head {
padding: 4px 12px;
border-bottom: 2px solid rgba(23, 20, 26, 0.1);
}
.doc__name {
font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
font-size: clamp(10px, 2.4vw, 13px);
font-weight: 700;
color: #17141a;
}
.doc__rows {
list-style: none;
margin: 0;
padding: 8px 12px 8px;
display: grid;
row-gap: 4px;
}
.ln {
border-radius: 4px;
padding: 4px;
min-height: clamp(18px, 6vw, 30px);
display: flex;
align-items: center;
}
.ln__txt {
font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
font-size: clamp(8.5px, 2.1vw, 12.5px);
color: #17141a;
white-space: nowrap;
}
.ln__txt::before {
content: attr(data-t);
}
.doc__scan {
position: absolute;
inset: 0;
pointer-events: none;
background: linear-gradient(to bottom, transparent 0 calc(50% - 7px), rgba(47, 109, 246, 0.3) calc(50% - 7px) calc(50% + 7px), transparent calc(50% + 7px) 100%);
background-size: 100% 220%;
opacity: 0;
}
.doc__badge {
position: absolute;
right: 8px;
bottom: 8px;
margin: 0;
border-radius: 999px;
background: #c2361a;
color: #fff;
font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
font-size: clamp(10px, 2.4vw, 13px);
font-weight: 800;
padding: 4px 12px;
box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
}
.stage.is-demo .doc__scan {
animation: scan-down 2s ease-out infinite;
}
.stage.is-demo .ln {
animation: ln-pass 2s linear infinite;
animation-delay: calc(var(--i) * 0.19s);
}
.stage.is-demo .ln--hit {
animation-name: ln-hit;
}
.stage.is-demo .doc__badge {
animation: badge-in 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}
@keyframes scan-down {
0% {
opacity: 1;
background-position: 0 -130%;
}
70% {
opacity: 1;
background-position: 0 130%;
}
75%, 100% {
opacity: 0;
background-position: 0 130%;
}
}
@keyframes ln-pass {
0%, 6% {
background: transparent;
}
15% {
background: rgba(47, 109, 246, 0.18);
}
26%, 100% {
background: transparent;
}
}
@keyframes ln-hit {
0%, 6% {
background: transparent;
}
15% {
background: rgba(194, 54, 26, 0.45);
}
26% {
background: rgba(194, 54, 26, 0.18);
}
36% {
background: rgba(194, 54, 26, 0.45);
}
46%, 100% {
background: rgba(194, 54, 26, 0.32);
}
}
@keyframes badge-in {
0%, 64% {
transform: scale(0) translateY(4px);
opacity: 0;
}
72% {
transform: scale(1.2) translateY(0);
opacity: 1;
}
78%, 95% {
transform: scale(1) translateY(0);
opacity: 1;
}
100% {
transform: scale(0.5);
opacity: 0;
}
}
@media (prefers-reduced-motion: reduce) {
.stage.is-demo .doc__scan,
.stage.is-demo .ln,
.stage.is-demo .doc__badge {
animation: none;
}
.doc__scan {
opacity: 0;
}
.ln--hit {
background: rgba(194, 54, 26, 0.32);
}
}
@media (max-width: 359px) {
.doc__head {
padding: 0 8px;
}
.doc__rows {
padding: 4px 8px;
row-gap: 4px;
}
.ln {
min-height: 16px;
padding: 0;
}
}import type { CSSProperties } from "react";
import styles from "./KoreanResidueScan.module.scss";
export type KoreanResidueScanProps = {
duration?: number;
easing?: string;
color?: string;
badge?: string;
};
const LINES = [
{ text: '"welcome": "Welcome back!"', hit: false },
{ text: '"orders": "View your orders"', hit: false },
{ text: '"shipping": "배송이 시작되었습니다."', hit: true },
{ text: '"account": "My account"', hit: false },
{ text: '"refund": "환불이 처리되었습니다."', hit: true },
];
export default function KoreanResidueScan({
duration = 2000,
easing = "ease-out",
color = "#2f6df6",
badge = "한글 잔존 2건",
}: KoreanResidueScanProps) {
const vars: CSSProperties = { "--duration": `${duration}ms`, "--easing": easing, "--color": color } as CSSProperties;
return (
<div className={styles.stage} style={vars} aria-label="번역 안 된 한글 잔존 데모" role="img">
<div className={styles.doc}>
<header className={styles.head}><span className={styles.name}>en.json</span></header>
<ul className={styles.rows}>
{LINES.map((l, i) => (
<li
key={i}
className={`${styles.ln} ${l.hit ? styles.hit : ""}`}
style={{ "--i": i } as CSSProperties}
>
<span className={styles.txt}>{l.text}</span>
</li>
))}
</ul>
<span className={styles.scan} />
<p className={styles.badge}>{badge}</p>
</div>
</div>
);
}04 Untranslated Korean left behind — Measured area 59.183% · moving frames 19/23Original by GODRICH · SCSS and React ship in the zip · i18n JSON Checks: 9 Ways to Catch Missing Keys
The post this demo lives in
i18n JSON Checks: 9 Ways to Catch Missing Keysi18n JSON files break quietly: a key missing from en.json leaves a button empty, and a stray {name} placeholder ships wi See all demos in this post


