Files
react-native-devtools-frontend/front_end/entrypoints/main/main.ts
T
Simon Zünd 85a05b9aae Revert "[l10n] Introduce a DevToolsLocale singelton"
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>
2021-05-07 10:22:09 +00:00

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,
};