Files
NapCatQQ/.pnpm-store/v3/files/24/a69c4ac59220582904810109d980d38e25b53a32a000aa88c14750d6a3810974d6335437ac0eebfb5ace2ca2569c85ffc4cfc03b2183e3af5c613e9e82143e
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

48 lines
2.2 KiB
Plaintext

var $47fa5ec5ff482271$exports = require("./context.main.js");
var $fbyBw$internationalizedstring = require("@internationalized/string");
var $fbyBw$react = require("react");
function $parcel$export(e, n, v, s) {
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
}
$parcel$export(module.exports, "useLocalizedStringDictionary", () => $fc53663969a3d00a$export$87b761675e8eaa10);
$parcel$export(module.exports, "useLocalizedStringFormatter", () => $fc53663969a3d00a$export$f12b703ca79dfbb1);
/*
* Copyright 2022 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
const $fc53663969a3d00a$var$cache = new WeakMap();
function $fc53663969a3d00a$var$getCachedDictionary(strings) {
let dictionary = $fc53663969a3d00a$var$cache.get(strings);
if (!dictionary) {
dictionary = new (0, $fbyBw$internationalizedstring.LocalizedStringDictionary)(strings);
$fc53663969a3d00a$var$cache.set(strings, dictionary);
}
return dictionary;
}
function $fc53663969a3d00a$export$87b761675e8eaa10(strings, packageName) {
return packageName && (0, $fbyBw$internationalizedstring.LocalizedStringDictionary).getGlobalDictionaryForPackage(packageName) || $fc53663969a3d00a$var$getCachedDictionary(strings);
}
function $fc53663969a3d00a$export$f12b703ca79dfbb1(strings, packageName) {
let { locale: locale } = (0, $47fa5ec5ff482271$exports.useLocale)();
let dictionary = $fc53663969a3d00a$export$87b761675e8eaa10(strings, packageName);
return (0, $fbyBw$react.useMemo)(()=>new (0, $fbyBw$internationalizedstring.LocalizedStringFormatter)(locale, dictionary), [
locale,
dictionary
]);
}
//# sourceMappingURL=useLocalizedStringFormatter.main.js.map