--- a/src/i18n/CMakeLists.txt
+++ b/src/i18n/CMakeLists.txt
@@ -82,7 +82,13 @@
 ### ktranscript plugin
 if (BUILD_WITH_QML)
 
-add_library(ktranscript MODULE)
+if(BUILD_SHARED_LIBS)
+    set(KTRANSCRIPT_LIBTYPE, MODULE)
+else()
+    set(KTRANSCRIPT_LIBTYPE, STATIC)
+endif()
+
+add_library(ktranscript ${KTRANSCRIPT_LIBTYPE})
 
 target_sources(ktranscript PRIVATE
     ktranscript.cpp
