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