@bstage-sdk/core 0.8.1 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/I18N.md +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/docs/I18N.md
CHANGED
|
@@ -147,7 +147,7 @@ cdn.static.bstage.in/static/i18n/{phase}/{system}[/{tier}]/latest.json
|
|
|
147
147
|
```ts
|
|
148
148
|
import { configureBstageI18n } from '@bstage-sdk/core'
|
|
149
149
|
|
|
150
|
-
configureBstageI18n({ tier: '
|
|
150
|
+
configureBstageI18n({ tier: 'my-tier' }) // origin·phase·system·tier·fetch 지정 가능
|
|
151
151
|
```
|
|
152
152
|
|
|
153
153
|
> **미번역이면 폴백 사전을 본다** — 사전에는 키는 있고 **값만 빈 문자열**인 항목이 있다(어드민은 일부 로케일이 대부분 그렇다). 그런 키를 만나면 폴백 사전(`en` → `ko`)을 **그때 추가로 받아** 채운다. 번역이 다 있는 로케일에서는 추가 요청이 없다.
|
|
@@ -156,7 +156,7 @@ configureBstageI18n({ tier: 'mnetplus' }) // origin·phase·system·tier·fetch
|
|
|
156
156
|
|
|
157
157
|
> **인증 fetch를 쓰지 않는다** — 번역 CDN은 공개 호스트다. 플랫폼이 주입하는 `__bstage_fetch__`는 URL을 가리지 않고 `Authorization`(+ dev/qa는 CF Access) 헤더를 붙이는데, 그러면 크로스 오리진 요청이 CORS preflight 대상이 되고 이 CDN은 `OPTIONS`에 403을 준다. 그래서 사전은 기본 `fetch`로 받는다(`BstageClient`는 게이트웨이를 부르므로 그쪽은 그대로 인증 fetch를 쓴다).
|
|
158
158
|
|
|
159
|
-
> **알려진 오차** — `tier`는 런타임에 알 수 있는 신호가 없다(플랫폼은 서버에서 HTTP 헤더로 받는다). 그래서 기본 `inhouse`이며,
|
|
159
|
+
> **알려진 오차** — `tier`는 런타임에 알 수 있는 신호가 없다(플랫폼은 서버에서 HTTP 헤더로 받는다). 그래서 기본 `inhouse`이며, `inhouse`가 아닌 tier를 쓰는 스페이스에 올라간 위젯은 위처럼 지정하지 않으면 inhouse 사전을 본다. 그 스페이스의 tier 값은 운영자에게 확인한다.
|
|
160
160
|
|
|
161
161
|
> **플랫폼 런타임과 독립이다** — 이 출처는 b.stage 플랫폼 앱이 자기 화면을 그릴 때 읽는 경로와 **의도적으로 분리**돼 있다. 지금은 같은 문구가 나오지만, TMS가 테넌트를 지원하면 갈라진다. "플랫폼과 다른 사전"은 버그가 아니다.
|
|
162
162
|
|