| 1 | /* |
| 2 | * SPDX-FileCopyrightText: 2024-2024 CSSlayer <[email protected]> |
| 3 | * |
| 4 | * SPDX-License-Identifier: LGPL-2.1-or-later |
| 5 | * |
| 6 | */ |
| 7 | |
| 8 | #include "pinyinenginefactory.h" |
| 9 | #include "pinyin.h" |
| 10 | #include <fcitx-utils/i18n.h> |
| 11 | |
| 12 | namespace fcitx { |
| 13 | |
| 14 | fcitx::AddonInstance * |
| 15 | fcitx::PinyinEngineFactory::create(AddonManager *manager) { |
| 16 | registerDomain("fcitx5-chinese-addons", FCITX_INSTALL_LOCALEDIR); |
| 17 | return new PinyinEngine(manager->instance()); |
| 18 | } |
| 19 | |
| 20 | } // namespace fcitx |
| 21 | |
| 22 | FCITX_ADDON_FACTORY_V2(pinyin, fcitx::PinyinEngineFactory) |