rmariuzzo/Lang.js

Implement `has` method.

Closed this issue · 0 comments

Summary

As a user, I would like to have a has method that implement Illuminate/Translation/Translator#has method.

Description

The method should accept 2 arguments: key and locale. The last one should be optional, when not set, use getLocale(). The method will return a boolean value, true if the given key exists with the provided or default locale, otherwise false will be returned.

Tests

The test/spec/lang_has_spec.js should fully cover all cases of has method.