File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed
Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 55 * Supports: en (English), cn (Chinese/中文)
66 */
77
8+ import { SPEC_VERSION } from './version' ;
9+
810export interface HomepageTranslations {
911 // Hero Section
1012 badge : {
@@ -86,7 +88,7 @@ export interface HomepageTranslations {
8688export const en : HomepageTranslations = {
8789 badge : {
8890 status : 'Protocol Specification' ,
89- version : 'v0.3.3 (Draft)' ,
91+ version : SPEC_VERSION ,
9092 } ,
9193 hero : {
9294 title : {
@@ -157,7 +159,7 @@ export const en: HomepageTranslations = {
157159export const cn : HomepageTranslations = {
158160 badge : {
159161 status : '协议规范' ,
160- version : 'v1.0' ,
162+ version : SPEC_VERSION ,
161163 } ,
162164 hero : {
163165 title : {
Original file line number Diff line number Diff line change 1+ /**
2+ * Version utilities
3+ *
4+ * Import the version number from @objectstack/spec package
5+ */
6+
7+ import specPackage from '../../../packages/spec/package.json' ;
8+
9+ /**
10+ * The current version of @objectstack/spec
11+ * Computed once at module initialization
12+ */
13+ export const SPEC_VERSION = `v${ specPackage . version } ` ;
You can’t perform that action at this time.
0 commit comments