i18n.ts 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. import { type Locale } from "./lib/language"
  2. import { dict as ar } from "./i18n/ar"
  3. import { dict as br } from "./i18n/br"
  4. import { dict as da } from "./i18n/da"
  5. import { dict as de } from "./i18n/de"
  6. import { dict as es } from "./i18n/es"
  7. import { dict as fr } from "./i18n/fr"
  8. import { dict as it } from "./i18n/it"
  9. import { dict as ja } from "./i18n/ja"
  10. import { dict as ko } from "./i18n/ko"
  11. import { dict as no } from "./i18n/no"
  12. import { dict as pl } from "./i18n/pl"
  13. import { dict as ru } from "./i18n/ru"
  14. import { dict as th } from "./i18n/th"
  15. import { dict as tr } from "./i18n/tr"
  16. import { dict as uk } from "./i18n/uk"
  17. import { dict as zh } from "./i18n/zh"
  18. import { dict as zht } from "./i18n/zht"
  19. const en = {
  20. "app.title": "AI Model Usage Rankings | OpenCode Data",
  21. "app.description":
  22. "Explore OpenCode Go usage across AI models, including token volume, rankings, market share, token pricing, session cost, cache ratio, and geo breakdowns.",
  23. "app.unfurlAlt": "OpenCode Data wordmark on a dark patterned background",
  24. "nav.dataHome": "Data Home",
  25. "nav.topModels": "Top Models",
  26. "nav.leaderboard": "Leaderboard",
  27. "nav.uniqueUsers": "Unique Users",
  28. "nav.sessionCost": "Session Cost",
  29. "nav.tokenCost": "Token Cost",
  30. "nav.cacheRatio": "Cache Ratio",
  31. "nav.marketShare": "Market Share",
  32. "nav.geoBreakdown": "Geo Breakdown",
  33. "nav.overview": "Overview",
  34. "nav.usage": "Usage",
  35. "nav.users": "Users",
  36. "nav.efficiency": "Efficiency",
  37. "nav.peers": "Peers",
  38. "nav.models": "Models",
  39. "header.brandLabel": "Data home",
  40. "header.sectionNavLabel": "Data sections",
  41. "header.githubAria": "Star OpenCode on GitHub",
  42. "header.github": "GitHub",
  43. "header.tryOpenCode": "Try OpenCode",
  44. "header.openNav": "Open navigation",
  45. "header.closeNav": "Close navigation",
  46. "theme.groupLabel": "Theme",
  47. "theme.dark": "Dark",
  48. "theme.light": "Light",
  49. "theme.system": "System",
  50. "footer.modelData": "Model Data",
  51. "footer.legal": "Legal",
  52. "footer.connect": "Connect",
  53. "footer.newsletter": "Newsletter",
  54. "footer.newsletterBody": "Be the first to know about new releases.",
  55. "footer.language": "Language",
  56. "footer.subscribe": "Subscribe",
  57. "footer.terms": "Terms of service",
  58. "footer.privacy": "Privacy policy",
  59. "footer.contact": "Contact us",
  60. "footer.community": "Community",
  61. "footer.youtube": "YouTube",
  62. "footer.homeAria": "OpenCode home",
  63. "footer.status": "All systems Operational",
  64. "footer.copyright": "© 2026 Anomaly Innovations Inc.",
  65. "bridge.learnMore": "LEARN MORE",
  66. "modal.closeNewsletter": "Close newsletter signup",
  67. "modal.title": "OpenCode Newsletter",
  68. "modal.body": "Be the first to know\nabout new releases.",
  69. "modal.email": "Email address",
  70. "modal.subscribe": "Subscribe",
  71. "modal.subscribing": "Subscribing...",
  72. "modal.success": "You're subscribed.",
  73. "modal.error": "Failed to subscribe",
  74. "product.allUsers": "All Users",
  75. "product.zen": "Zen",
  76. "product.go": "Go",
  77. "range.1D": "1 Day",
  78. "range.1W": "1 Week",
  79. "range.2W": "2 Weeks",
  80. "range.1M": "1 Month",
  81. "range.2M": "2 Months",
  82. "chart.daily": "Daily",
  83. "chart.input": "Input",
  84. "chart.output": "Output",
  85. "chart.cached": "Cached",
  86. "chart.uncached": "Uncached",
  87. "chart.ratio": "Ratio",
  88. "chart.model": "Model",
  89. "chart.cacheRatio": "Cache Ratio",
  90. "chart.costSession": "Cost/Session",
  91. "chart.tokensSession": "Tokens/Session",
  92. "chart.costPerSession": "COST / SESSION",
  93. "chart.tokensPerSession": "TOKENS / SESSION",
  94. "chart.live": "Live",
  95. "chart.percent": "percent",
  96. "chart.leaderboardAria": "Model token leaderboard",
  97. "chart.scrollableLeaderboardAria": "Scrollable model token leaderboard",
  98. "chart.byAuthor": "by {{author}}",
  99. "home.updated": "Updated",
  100. "home.noRows": "No rows yet",
  101. "home.justNow": "just now",
  102. "home.heroCopy": "See which models are winning real usage, how the mix is shifting, and what that means for cost.",
  103. "home.loadingTitle": "Loading data",
  104. "home.loadingDescription": "Reading model aggregates.",
  105. "home.usageTitle": "Usage",
  106. "home.topModelsDescription": "Usage of models across OpenCode Go.",
  107. "home.noUsageTitle": "No usage data",
  108. "home.noUsageDescription": "No model rows matched this product and range.",
  109. "home.noLeaderboardTitle": "No leaderboard data",
  110. "home.noLeaderboardDescription": "No model rows matched this product and range.",
  111. "home.productFilter": "Product filter",
  112. "home.dateRange": "Date range",
  113. "home.stackedUsageChart": "Stacked top model usage chart",
  114. "home.total": "total",
  115. "home.modelUsers": "model users",
  116. "home.new": "New",
  117. "home.uniqueUsersTitle": "Unique Users",
  118. "home.uniqueUsersDescription": "Daily unique OpenCode Go users by model.",
  119. "home.noUserDataTitle": "No user data",
  120. "home.noUserDataDescription": "No user-bearing model rows matched this window.",
  121. "home.uniqueUsersChart": "Stacked unique user chart by model",
  122. "home.marketShareTitle": "Market Share",
  123. "home.marketShareDescription": "Compare token share by model author.",
  124. "home.noMarketTitle": "No market data",
  125. "home.noMarketDescription": "No model rows matched this range.",
  126. "home.marketChart": "Market share by model author",
  127. "home.noData": "No data",
  128. "home.geoTitle": "Geo Breakdown",
  129. "home.geoDescription": "Tokens used by country.",
  130. "home.noGeoTitle": "No geo data",
  131. "home.noGeoDescription": "No geo rows matched this range.",
  132. "home.worldMap": "World map of token usage by country",
  133. "home.geoMapTitle": "Geo Breakdown map",
  134. "home.unknown": "Unknown",
  135. "home.tokenCostTitle": "Token Cost",
  136. "home.tokenCostDescription": "Price per 1M tokens.",
  137. "home.noTokenCostTitle": "No token cost data",
  138. "home.noTokenCostDescription": "No cost-bearing model rows matched this product.",
  139. "home.cacheRatioTitle": "Cache Ratio",
  140. "home.cacheRatioDescription": "Share of input tokens served from cache.",
  141. "home.noCacheTitle": "No cache ratio data",
  142. "home.noCacheDescription": "No input-token model rows matched this product.",
  143. "home.sessionCostTitle": "Session Cost",
  144. "home.sessionCostDescription": "Average cost per session.",
  145. "home.noSessionCostTitle": "No session cost data",
  146. "home.noSessionCostDescription": "No session-bearing model rows matched this product.",
  147. "home.costSession": "Cost/Session",
  148. "lab.title": "{{lab}} AI Model Usage & Rankings | OpenCode Data",
  149. "lab.description":
  150. "Compare {{lab}} models used in OpenCode Go, including token usage, model rankings, context windows, release dates, costs, and model-specific data.",
  151. "lab.loadingTitle": "Model Lab",
  152. "lab.loadingDescription": "Reading model availability and recent OpenCode usage.",
  153. "lab.notFound": "No models matched this lab.",
  154. "lab.heroPrefix": "Explore {{count}} {{lab}} models used in OpenCode",
  155. "lab.heroIncluding": "including {{models}}",
  156. "lab.heroSuffix": "Compare recent token usage, context windows, release dates, and model data.",
  157. "lab.tokensProcessed": "Tokens Processed",
  158. "lab.pending": "Pending",
  159. "lab.usageAfterActivity": "Usage appears after model activity lands",
  160. "lab.latestRelease": "Latest release {{date}}",
  161. "lab.shareOfUsage": "{{share}} of recent OpenCode usage",
  162. "lab.usageTitle": "{{lab}} token usage",
  163. "lab.usageDescription": "Daily token volume.",
  164. "lab.noUsageTitle": "No usage yet",
  165. "lab.noUsageDescription": "Recent token usage appears here once this lab has activity.",
  166. "lab.dailyTokenChart": "{{lab}} daily token usage chart",
  167. "lab.dailyTokens": "Daily tokens",
  168. "lab.tokens": "tokens",
  169. "lab.modelsTitle": "{{lab}} models",
  170. "lab.modelsDescription": "Catalog details plus recent usage.",
  171. "lab.recentUsageAndLimits": "Recent usage and limits.",
  172. "lab.usage": "Usage",
  173. "lab.share": "Share",
  174. "model.title": "{{model}} Usage, Cost & Rank | OpenCode Data",
  175. "model.description":
  176. "View {{model}} OpenCode Go usage data, including token volume, weekly rank, token mix, costs, cache ratio, sessions, geo breakdowns, and peer models.",
  177. "model.loadingTitle": "Model Data",
  178. "model.loadingDescription": "Reading model aggregates.",
  179. "model.loadingProfile": "Reading the model profile.",
  180. "model.noDataTitle": "No model data",
  181. "model.noDataDescription": "Try opening a model from the leaderboard.",
  182. "model.noMatched": "No model facts or usage rows matched {{id}}.",
  183. "model.fallback": "Model",
  184. "model.catalogFallback":
  185. "Model facts from the shared model index. OpenCode Go usage appears once this model has activity.",
  186. "model.unranked": "Unranked across last week's OpenCode Go usage",
  187. "model.ranked": "Ranked #{{rank}} across last week's OpenCode Go usage",
  188. "model.observedVolume": "with {{share}} of observed 2M volume.",
  189. "model.weights": "Model weights: {{label}}",
  190. "model.rank": "7D Rank",
  191. "model.profile": "Model Profile",
  192. "model.listed": "Listed",
  193. "model.noCurrentUsage": "No OpenCode Go usage in the current data window.",
  194. "model.facts": "Model facts",
  195. "model.context": "Context",
  196. "model.output": "Output",
  197. "model.knowledge": "Knowledge",
  198. "model.release": "Release",
  199. "model.inputs": "Inputs",
  200. "model.overviewDescription": "Recent tokens, unique users, and market position.",
  201. "model.noSummaryTitle": "No usage summary",
  202. "model.noSummaryDescription": "This model has no OpenCode Go usage rows yet.",
  203. "model.tokens": "Tokens",
  204. "model.uniqueUsers": "Unique Users",
  205. "model.lastTwoMonths": "last two months",
  206. "model.sessions": "Sessions",
  207. "model.completedSessions": "completed sessions",
  208. "model.tokenShare": "Token Share",
  209. "model.totalModels": "{{count}} models",
  210. "model.momentum": "Momentum",
  211. "model.vsPreviousWindow": "vs previous window",
  212. "model.usageDescription": "Daily token volume.",
  213. "model.noUsageTitle": "No usage",
  214. "model.noUsageDescription": "No usage landed in the current window.",
  215. "model.dailyTokenChart": "Daily token usage chart",
  216. "model.usersDescription": "Daily unique users.",
  217. "model.noUsersTitle": "No user data",
  218. "model.noUsersDescription": "No user-bearing rows landed in the current window.",
  219. "model.dailyUserChart": "Daily unique user chart",
  220. "model.efficiencyDescription": "Cost, cache behavior, and average session shape.",
  221. "model.noEfficiencyTitle": "No efficiency data",
  222. "model.noEfficiencyDescription": "Efficiency data appears after usage lands.",
  223. "model.totalSpendLabel": "Total spend",
  224. "model.cost": "Cost",
  225. "model.totalSpend": "total spend",
  226. "model.costPerMillion": "Cost / 1M",
  227. "model.costInput": "Cost input",
  228. "model.costOutput": "Cost output",
  229. "model.inputOutput": "input / output",
  230. "model.observedTokens": "observed all tokens",
  231. "model.costSession": "Cost / Session",
  232. "model.averageCostSession": "Average cost / Session",
  233. "model.average": "average",
  234. "model.tokensSession": "Tokens / Session",
  235. "model.averageTokensSession": "Average tokens / session",
  236. "model.cacheRatio": "Cache Ratio",
  237. "model.inputTokens": "input tokens",
  238. "model.geoDescription": "OpenCode Go model tokens used by country.",
  239. "model.noGeoTitle": "No geo data",
  240. "model.noGeoDescription": "No OpenCode Go geo rows matched this model.",
  241. "model.worldMap": "World map of model token usage by country",
  242. "model.peersDescription": "Nearby models by recent OpenCode Go token volume.",
  243. "model.noPeersTitle": "No peers",
  244. "model.noPeersDescription": "Peer rankings appear after usage lands.",
  245. "model.noUsageLastWeek": "No usage last week",
  246. "model.newThisWeek": "New this week",
  247. "model.sameAsPreviousWeek": "Same as previous week",
  248. "model.vsPreviousWeek": "{{change}} vs previous week",
  249. "model.pdf": "PDF",
  250. "format.users": "users",
  251. "format.tokens": "tokens",
  252. } as const
  253. export type Key = keyof typeof en
  254. export type Dict = Record<Key, string>
  255. const dictionaries = {
  256. ar,
  257. br,
  258. da,
  259. de,
  260. en,
  261. es,
  262. fr,
  263. it,
  264. ja,
  265. ko,
  266. no,
  267. pl,
  268. ru,
  269. th,
  270. tr,
  271. uk,
  272. zh,
  273. zht,
  274. } satisfies Record<Locale, Dict>
  275. export function dict(locale: Locale) {
  276. return dictionaries[locale]
  277. }