mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-06 20:11:38 +08:00
This reverts commit c8b20b099d.
Reason for revert: There are a couple of things missing here:
1) The class should live in core/i18n
2) It should take into account all the locales that DevTools supports
3) It should replace i18nImpl#registerdLocale as the truth for what locale DevTools is using.
Its easier to revert and re-add the class in i18n anew.
Original change's description:
> [l10n] Introduce a DevToolsLocale singelton
>
> The singletons job is to choose the DevTools locale based on user
> preference and navigator.language. It also serves as the
> source of truth of the current DevTools locale.
>
> R=tvanderlippe@chromium.org
>
> Bug: chromium:1163928
> Change-Id: Ia9797297a5e47d7b169cbfe4e371dd14d15bc54b
> Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2874131
> Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
> Commit-Queue: Simon Zünd <szuend@chromium.org>
Bug: chromium:1163928
Change-Id: I36d9e9dbc9e55dea389cb0532e742666a57e4854
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2878721
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
14 lines
395 B
TypeScript
14 lines
395 B
TypeScript
// Copyright 2019 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
import * as ExecutionContextSelector from './ExecutionContextSelector.js';
|
|
import * as MainImpl from './MainImpl.js';
|
|
import * as SimpleApp from './SimpleApp.js';
|
|
|
|
export {
|
|
ExecutionContextSelector,
|
|
MainImpl,
|
|
SimpleApp,
|
|
};
|