• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

FROSADO / onecloudriver / 33677918482
81%

Build:
DEFAULT BRANCH: main
Ran 02 Sep 2026 08:18PM UTC
Jobs 1
Files 57
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Sep 2026 08:12PM UTC coverage: 81.524% (+0.5%) from 80.999%
33677918482

push

github

web-flow
feat(cli): internationalize CLI output (detect system language, localizable strings) (#144)

* docs: add initial i18n design plan for CLI internationalization (#30)

PLAN_6.md details the internationalization of the CLI output: locale
detection (--lang flag + POSIX env), embedded go-i18n/v2 JSON catalogs,
the internal/i18n package API (Init/L/Ld) and a phased roll-out
(infrastructure, wrapping ~131 user-facing strings, cobra help, Spanish
catalog) with atomic tasks written for Go learners.

* feat(i18n): add locale detection, embedded catalogs and L() wrapper (#30)

Introduce the internal/i18n package: locale detection (--lang flag >
LC_ALL > LC_MESSAGES > LANG, POSIX to BCP-47 normalization via the pure
ParseLocale), embedded go-i18n/v2 JSON catalogs (en default fallback +
es seed) loaded through //go:embed, and the L()/Ld() message wrappers
keyed by stable dotted ids. PersistentPreRun initializes the language
before any command runs. Tests cover the locale matrix, detection env
matrix, en/es localization and catalog completeness so MustLocalize can
never panic on a missing id.

* refactor(cli): localize text formatter and item command output (#30)

Localize the text formatter (table headers, File/Folder labels, info block) and the list/mkdir/mv/rename/rm success messages via i18n.L()/Ld(). Pin the test locale to en in TestMain, add the new en/es catalog ids, and document the Fase 2 design decisions in PLAN_6.md.

* refactor(cli): localize remaining commands, OAuth flow and mount output (#30)

Localize download/copy/upload, account/service/mount/sync/common, the OAuth auth flow and the fs health-check offline messages via i18n.L()/Ld(). Fix the copy.go literal \n, accept Spanish yes/no in the cache prompt, use explicit singular/plural ids for the sync count, and add command-level locale tests (in-process locale switch and --lang es smoke).

* feat(i18n): localize cobra help texts (Short/Long and section titles) (#30)

Add localizeCommandTree to assig... (continued)

345 of 384 new or added lines in 21 files covered. (89.84%)

1 existing line in 1 file now uncovered.

6217 of 7626 relevant lines covered (81.52%)

3354.01 hits per line

Uncovered Changes

Lines Coverage ∆ File
9
39.46
0.0% cmd/onecloudriver/mount.go
7
93.07
cmd/onecloudriver/i18n_flags.go
7
46.41
0.65% cmd/onecloudriver/service.go
4
42.11
1.29% cmd/onecloudriver/main.go
3
97.71
cmd/onecloudriver/i18n_help.go
3
88.46
internal/i18n/i18n.go
2
68.29
-4.88% cmd/onecloudriver/sync.go
1
64.47
0.0% cmd/onecloudriver/account.go
1
66.1
0.0% cmd/onecloudriver/download.go
1
79.17
0.0% cmd/onecloudriver/upload.go
1
44.84
0.0% internal/fs/mount.go

Coverage Regressions

Lines Coverage ∆ File
1
68.29
-4.88% cmd/onecloudriver/sync.go
Jobs
ID Job ID Ran Files Coverage
1 33677918482.1 02 Sep 2026 08:18PM UTC 57
81.52
GitHub Action Run
Source Files on build 33677918482
  • Tree
  • List 57
  • Changed 18
  • Source Changed 0
  • Coverage Changed 18
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • bad63a3b on github
  • Prev Build on main (#33322829178)
  • Next Build on main (#33991672405)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc