Skip to content

Commit

Permalink
✨ i18n as string
Browse files Browse the repository at this point in the history
  • Loading branch information
roiLeo committed Mar 3, 2023
1 parent 22525d8 commit a08dd9a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ const checkBuyBeforeSubmit = async () => {
$i18n.t('nft.notification.nftChanged', {
chain: urlPrefix.value.toUpperCase(),
action: actionLabel,
}) as string,
}),
notificationTypes.warn
)
return false
Expand All @@ -169,7 +169,7 @@ const handleBuy = async () => {
const { item: itemId } = tokenIdToRoute(props.nftId)
showNotification(
$i18n.t('nft.notification.info', { itemId, action: actionLabel }) as string
$i18n.t('nft.notification.info', { itemId, action: actionLabel })
)
if (urlPrefix.value === 'rmrk' && !(await checkBuyBeforeSubmit())) {
Expand All @@ -184,8 +184,8 @@ const handleBuy = async () => {
nftId: $route.params.id,
tokenId: $route.params.id,
urlPrefix: urlPrefix.value,
successMessage: $i18n.t('mint.successNewNfts') as string,
errorMessage: $i18n.t('transaction.buy.error') as string,
successMessage: $i18n.t('mint.successNewNfts'),
errorMessage: $i18n.t('transaction.buy.error'),
})
} catch (error) {
dangerMessage(error)
Expand Down
2 changes: 1 addition & 1 deletion vue-shim.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ declare module '*.vue' {
import { ApolloClientMethods } from 'vue-apollo/types/vue-apollo'
import { BuefyNamespace } from 'buefy'
import consola from 'consola'
import { IVueI18n } from 'vue-i18n'
import IVueI18n from 'vue-i18n'

declare module '#app' {
interface NuxtAppCompat {
Expand Down

0 comments on commit a08dd9a

Please sign in to comment.