Rails:更改 devise_invitable 消息 - "The invitation token provided is not valid!"

Rails: Change devise_invitable message - "The invitation token provided is not valid!"

我想更改 devise_invitable 的默认无效邀请令牌消息,但我不确定去哪里才能这样做。任何帮助将不胜感激!

From the README:

To customize your app, you can modify the generated locale file:

en:   
  devise:
    invitations:
      send_instructions: 'An invitation email has been sent to %{email}.'
      invitation_token_invalid: 'The invitation token provided is not valid!'
      updated: 'Your password was set successfully. You are now signed in.'
      updated_not_active: 'Your password was set successfully.'

此文件应位于您应用的 config/locales 目录中。