mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2025-04-16 19:15:46 +02:00
28 lines
748 B
Kotlin
28 lines
748 B
Kotlin
/*
|
|
* Copyright 2022 The IdeaVim authors
|
|
*
|
|
* Use of this source code is governed by an MIT-style
|
|
* license that can be found in the LICENSE.txt file or at
|
|
* https://opensource.org/licenses/MIT.
|
|
*/
|
|
|
|
package com.maddyhome.idea.vim.helper
|
|
|
|
import com.intellij.DynamicBundle
|
|
import org.jetbrains.annotations.NonNls
|
|
import org.jetbrains.annotations.PropertyKey
|
|
|
|
@NonNls
|
|
private const val IDEAVIM_BUNDLE = "messages.IdeaVimBundle"
|
|
|
|
object MessageHelper : DynamicBundle(IDEAVIM_BUNDLE) {
|
|
|
|
const val BUNDLE = IDEAVIM_BUNDLE
|
|
|
|
@JvmStatic
|
|
fun message(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any) = getMessage(key, *params)
|
|
|
|
@JvmStatic
|
|
fun message(@PropertyKey(resourceBundle = BUNDLE) key: String) = getMessage(key)
|
|
}
|