File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 55 * Supports: en (English), cn (Chinese/中文)
66 */
77
8- import { getSpecVersion } from './version' ;
8+ import { SPEC_VERSION } from './version' ;
99
1010export interface HomepageTranslations {
1111 // Hero Section
@@ -88,7 +88,7 @@ export interface HomepageTranslations {
8888export const en : HomepageTranslations = {
8989 badge : {
9090 status : 'Protocol Specification' ,
91- version : getSpecVersion ( ) ,
91+ version : SPEC_VERSION ,
9292 } ,
9393 hero : {
9494 title : {
@@ -159,7 +159,7 @@ export const en: HomepageTranslations = {
159159export const cn : HomepageTranslations = {
160160 badge : {
161161 status : '协议规范' ,
162- version : getSpecVersion ( ) ,
162+ version : SPEC_VERSION ,
163163 } ,
164164 hero : {
165165 title : {
Original file line number Diff line number Diff line change 77import specPackage from '../../../packages/spec/package.json' ;
88
99/**
10- * Get the current version of @objectstack/spec
10+ * The current version of @objectstack/spec
11+ * Computed once at module initialization
1112 */
12- export function getSpecVersion ( ) : string {
13- return `v${ specPackage . version } ` ;
14- }
13+ export const SPEC_VERSION = `v${ specPackage . version } ` ;
You can’t perform that action at this time.
0 commit comments