Locales Anise
v1.0A calm translation workspace for an app shipped in many languages: strings, a side-by-side editor, coverage that fills as keys are reviewed, and releases, in lilac grey with a plum accent.
페이지 주소: /
기본 제공
제공 내용- 라이트 및 다크사용 중인 테마 색상 적용
- 데스크톱, 태블릿 및 휴대폰지원하는 화면
- 패키지…
- 코드 크기…
- 배터리 절약30 fps, 멈춰 있을 땐 대기
- 숨겨지면 일시 정지화면 밖 또는 다른 탭
- 모션 줄이기원하는 사용자에겐 차분하게
변경할 때마다 검사
보안 검사 12월 3일- 타입 검사TypeScript strict 모드
- 린트 및 포맷ESLint · Prettier
- 테스트 및 빌드라이트/다크 스크린샷
- 보안 감사높음 또는 심각 등급 권고 없음
- 패키지 공개 기간모든 버전 공개 후 7일 이상
- 대기 시 CPU대기 시 코어 절반 미만, 30 fps 이하
코드
locales-aniseReact
- locales-anise.tsxThe page: the sections in order.
- content.tsEvery word and number: brand, nav links, each section's copy and lists.
- theme.tsThe colors as CSS variables, and the shared class strings.
- README.mdHow to install it, and where to change the text, colors and form.
- pagesOne file per page: the sections it shows, in order.
- glossary.tsxThe glossary: the words the team keeps the same everywhere, with how many languages have them; a term opens its sheet to fill in its translations, the top bar's New term adds one.
- home.tsxThe overview: the KPI strip, every language's coverage, reviewed per day, the recent edits feed and the drafts waiting for review, all following the team's live edits.
- languages.tsxThe languages page: every language in fallback order (drag a row, or Space and the arrows, to change it) with its coverage, translator and fallback; switch one off, edit it, add one from the top bar, remove it.
- releases.tsxThe releases page: the coming version with every key added or changed since the last one (leave one out), its notes and which languages ship; Publish in the top bar bundles it; past releases below.
- settings.tsxThe settings page: Team, Workflow and Appearance, one tab each (?tab=, so Back keeps it); the tab mark glides between them.
- sign-in.tsxThe sign-in page (#/sign-in): the logo and the form on one card over the backdrop, without the sidebar and top bar.
- strings.tsxThe strings page: every key with its source, filtered by search, part of the app and status in the working language (kept in the address, so Back keeps them); select rows to tag or delete them; a row opens its sheet, the top bar's New string the form.
- translate.tsxThe translate page: the working language's queue, the editor for the current key (#/translate/<key>) and the key in other languages and on screen; the coverage bar on top fills with every approval.
- sectionsOne file per page section.
- account-menu.tsxThe account menu under the avatar in the top bar: who is signed in, Settings and Sign out; the arrow keys move through it, Escape, Tab or a click outside closes it.
- appearance.tsxSettings → Appearance: the theme (System, Dark or Light), each choice shown as a small preview, and the language (System or one of locales/list.ts).
- coverage.tsxThe overview's coverage panel (every language's reviewed share, filling as keys are approved, in fallback order) and the reviewed-per-day chart.
- editor.tsxThe translate editor for one key: the English source beside your translation, its context and glossary terms, a machine suggestion, Save draft and Approve. Enter approves and the editor slides on to the next key.
- feed.tsxThe overview's right column: the recent edits feed (the team's saves streaming in, new rows gliding in on top) and the drafts waiting for review, each approved in one click.
- kpi-strip.tsxThe overview's KPI strip: keys, missing in the working language, awaiting review and the last release, four cells in one box, each with its trend; the numbers roll as the team's edits arrive.
- language-form.tsxThe add / edit language form in a dialog: which language, who translates it, what it falls back to and whether the app ships it; editing also removes it.
- sidebar.tsxThe sidebar: logo, search with the command palette shortcut, and the page links with their live counts; the current page's pill glides from link to link. Collapsed, only the icons show.
- sign-in-form.tsxThe sign-in form: email and password with their errors under them, show or hide the password, keep me signed in, and the demo account to fill in; a wrong pair says so above the fields.
- string-form.tsxThe new / edit string form in a dialog: key, English source, context note and tags, checked as you save, with its own error lines (no browser popups).
- string-list.tsxThe strings table: a checkbox, the key and its English source, its status in the working language, how many languages have it reviewed, and when it last changed. Rows glide when a filter or a save re-sorts them.
- string-sheet.tsxOne string's side sheet: its screen, the English source, context and tags, every language's translation with its status, and Edit, Translate and Delete.
- string-tools.tsxThe strings page's tools: the filter row (search, part of the app, status in the working language) and the floating bar for the selected rows (add a tag, delete, clear).
- team.tsxSettings → Team: everyone who works on the strings, their role and languages; invite someone (the top bar's Invite), change a role or languages, remove someone.
- term-sheet.tsxThe glossary's two forms: a term's sheet (its translation in every language, edited in place) and the new-term dialog (the word, its kind, a note, and Don't translate for names).
- top-bar.tsxThe top bar: the menu button on narrow screens, where you are, the working-language picker, the live strap, search, the theme switch, the page's main action and the account menu. It frosts over the page once it scrolls.
- workflow.tsxSettings → Workflow: machine suggestions on or off, whether a draft needs a reviewer, and the reviewed share a language needs to ship in a release.
- partsWhat several sections share.
- buildWhat several sections share.
- cardsWhat several sections share.
- unfold.tsThe unfold card style: cards unfold downward from their top edge, their contents fading in.
- rowsWhat several sections share.
- count.tsThe count row motion: each row on screen brightens from faint while its numbers (<Ticker>) count up, rounded every frame.
- core.tsxThe page's build-in: on first load and on every page switch the cards arrive in the app's card style and their contents build: bars grow, lines draw, rings fill, the list rows on screen ripple in in the app's row motion, numbers count. The two picks are wired in ./index.ts.
- index.tsThe app's two build-in picks, wired here and nowhere else: its card style (cards/) and its row motion (rows/). npm run new-app copies only the two it is given (--cards, --rows).
- appearance.tsHow the app looks right now: dark or light, Glass or Solid, from Settings → Appearance, the page around it and the Style setting.
- avatar.tsxA person's initials in a round badge, tinted with the primary.
- backdrop.tsxThe Glass style's backdrop: what shows through the see-through panels, faded out in Solid; with followBackground it paints your background instead.
- charts.tsxThe two charts: a smooth sparkline with a soft area under it (the KPI strip) and rounded day bars with today in the accent (reviewed per day).
- command-palette.tsxThe command palette (⌘K or Ctrl K): type to find a page or an action, then Enter.
- confirm.tsxAn in-app "are you sure" for a delete or a publish: the question, what happens, Cancel and the action (busy while it saves).
- dialog.tsxA centered modal dialog (a form, a confirm): rises in, plays its way out, Escape or a tap outside closes it, and the focus goes back where it was.
- drag-lanes.tsDrag rows between ordered lanes (here one: the languages' fallback order): mouse and pen at once, touch after a short press (a swipe still scrolls), the lifted copy kept under the grab point, the others sliding aside (FLIP), the page and the board scrolling near their edges, Escape to cancel, and a keyboard path (Space lifts, arrows move, Space drops).
- drawer.tsxA drawer from the right: a full-height native <dialog> for one thing's details (a client, an order). It springs in, slides out, closes on Esc, the close button or a click beside it, and keeps showing its thing while it slides away.
- field.tsxA labeled form field (a text input or a select) with its error line under it, tied together for screen readers.
- flip.tsFLIP for a list: after every change, the rows that stayed glide from where they were to where they are now, and new rows fade up into place. Positions are measured again whenever the list resizes, so a glide never starts from a stale place.
- format.tsHow numbers and dates are written: by Intl, the current language's way ("1,240", "1.240"; "Nov 19", "19 nov."). Add a helper here when a page needs money, times or a list.
- icons.tsxThe logo and the line icons, drawn on a 24-unit grid with round ends.
- language.tsThe app's language: the words every page reads (useWords), how dates and numbers are written (parts/format.ts) and the reading direction. Picked in Settings → Appearance (or System: the page's own language) and kept in this browser; English is built in, any other language loads only when it shows (locales/list.ts).
- live-clock.tsxOne shared clock for everything live: it ticks only while something on screen listens, the tab is visible and live isn't paused, and the bare button that pauses it. What a tick does (move the demo's time, bring in an event, reload) is the app's, passed to liveClock.
- live.tsThe app's one live clock: once a second while the app is on screen and the tab is visible, a teammate's edit arrives every 6-9 seconds and every page reloads its numbers; relative times redraw every 30 seconds.
- moments.tsThe animations the sidebar, the sign-in card, menus, dialogs, the phone sheet and toasts play, timed by their moments in theme.ts.
- motion.tsMotion helpers: the reduced-motion check, live, and run-once-in-view.
- popover.tsxA menu that unfolds from its button (a row's actions, the alerts, a sort pick): drawn in the window layer so no table or card clips it; arrow keys walk it, Escape, Tab, a click outside or a scroll folds it away, and it plays its way out unless motion is reduced.
- router.tsThe page switcher: reads the app's page from the address hash (#/settings, #/?status=open).
- screen-art.tsxA string's screenshot: the app screen its key lives on, drawn as a calm wireframe with the string itself picked out where it shows, so a translator sees how much room it has.
- scroll-to-view.tsScrolls an element into view moving only its own scroll container, never the page around it.
- select-box.tsxA native select dressed to match the app: no browser arrow, a drawn chevron instead.
- session.tsWhether someone is signed in: a first visit is signed in as the demo account; Sign out holds until the next sign-in, and a sign-in without Keep me signed in lasts only this tab.
- sheet.tsxThe phone sheet: a modal panel that springs in from the left with the sidebar; Escape, a tap outside or its close button slides it away.
- states.tsxThe data states every page shares: a calm skeleton while loading, an error with Try again, and an empty note with a way out.
- status.tsxThe small marks every page shares: a translation's status (a glyph and its word, never color alone), a language's coverage bar that fills as keys are reviewed, a language code badge and an on/off switch.
- store.tsThe app-wide state several parts share: the theme mode and style (kept in the browser) and the toasts.
- ticker.tsxA number that counts up while its page builds in, and rolls to its new value whenever it changes.
- toasts.tsxThe toasts: short notes that confirm what just happened, at the bottom end.
- use-api.tsLoads data through the fake API with loading, error and retry, remembering each answer so a page you come back to shows at once.
- use-dialog.tsOpens and closes a native <dialog> as a modal; on close it plays its way out first (data-closing), so dialogs, sheets and the palette never vanish in one frame.
- work-lang.tsThe working language: the one the translator works in (the top bar's picker), read by the overview, the strings' status column and the editor. Kept in this browser.
- dataThe pretend data and the fake API: swap it for your backend.
- account.tsThe demo account: who is signed in (the account menu shows them) and the email and password the sign-in page takes.
- api.tsThe fake API: every page loads and saves through these functions, so wiring a real backend happens here only.
- db.tsThe pretend database: every string, translation, language, term, member and release, kept in memory for the visit, and the views the pages read.
- live.tsThe team at work: each call is one teammate saving through the same store the pages use.
- seed-strings.tsThe pretend app strings: the Wayfarer travel app's English source, one line per key.
- seed-text.tsThe translations the pretend team has written, one line per key.
- seed.tsThe pretend team, languages, glossary and release history of Wayfarer, a travel app shipped in 14 languages.
- types.tsThe shapes the fake API answers with: what a real backend returns too.
- localesEvery word the app shows, one JSON file a language; list.ts names them.
- en.jsonOne language's words, with the keys of en.json.
- es.jsonOne language's words, with the keys of en.json.
- list.tsThe languages the app offers, in the picker's order: one JSON file each, en.json the source. To remove one, delete its file and its line; to add one, copy es.json, translate it and add a line. English is built in; the rest load only when picked. TypeScript checks each file has en.json's keys, scripts/check/check-locales.mjs the rest (no extra keys, plural forms, {slots}).
locales-anise.tsx
The page: the sections in order.
불러오는 중…
- 이럴 때 좋아요
- Product teams localizing an app with in-house translators and freelancers: keys, glossary, review and releases in one place.
- 작동 방식
- Translators' edits stream in live and coverage bars fill as keys are approved; Enter approves a key and the editor slides on.
- 사용 방법
- Edit words in locales/ and colors in theme.ts, and swap the bodies in data/api.ts for calls to your localization backend.