Jump to content

Module:TestLuaIntegration: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

4 September 2024

  • curprev 13:1213:12, 4 September 2024Admin talk contribs 747 bytes +747 Created page with "local p = {}; -- Load the Translate lua library local TMB = require 'mw.ext.translate.messageBundle' function p.testDefaultLanguage () local mb = mw.ext.translate.messageBundle.new( "MessageBundleDemoForever" ) return mb:t( "template-description" ) end function p.testLanguage () local mb = TMB.new( "MessageBundleDemoForever", "es" ) -- Should fetch Spanish translations, if available, else English return mb:t( "description" ) end function p.testWithoutFallba..."