Skip to content

Commit c7f3976

Browse files
Update runtime-mode.md (#1326)
updated old references to `./generated/locales.js` with the `/generates/locale-codes.js` which is the new default and also used in the example code
1 parent c97cd65 commit c7f3976

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/lit-dev-content/site/docs/v3/localization/runtime-mode.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ For example:
8686
```js
8787
import {configureLocalization} from '@lit/localize';
8888
// Generated via output.localeCodesModule
89-
import {sourceLocale, targetLocales} from './generated/locales.js';
89+
import {sourceLocale, targetLocales} from './generated/locale-codes.js';
9090

9191
export const {getLocale, setLocale} = configureLocalization({
9292
sourceLocale,
@@ -242,7 +242,7 @@ it minimizes the amount of code that your users will download and execute.
242242

243243
```js
244244
import {configureLocalization} from '@lit/localize';
245-
import {sourceLocale, targetLocales} from './generated/locales.js';
245+
import {sourceLocale, targetLocales} from './generated/locale-codes.js';
246246

247247
const {getLocale, setLocale} = configureLocalization({
248248
sourceLocale,
@@ -259,7 +259,7 @@ locale modules are being fetched.
259259

260260
```js
261261
import {configureLocalization} from '@lit/localize';
262-
import {sourceLocale, targetLocales} from './generated/locales.js';
262+
import {sourceLocale, targetLocales} from './generated/locale-codes.js';
263263

264264
const localizedTemplates = new Map(
265265
targetLocales.map((locale) => [locale, import(`/locales/${locale}.js`)])
@@ -290,7 +290,7 @@ some other restriction that prevents the use of dynamic imports.
290290

291291
```js
292292
import {configureLocalization} from '@lit/localize';
293-
import {sourceLocale, targetLocales} from './generated/locales.js';
293+
import {sourceLocale, targetLocales} from './generated/locale-codes.js';
294294

295295
import * as templates_es_419 from './locales/es-419.js';
296296
import * as templates_zh_hans from './locales/zh-Hans.js';

0 commit comments

Comments
 (0)