MCPcopy Create free account
hub / github.com/codecombat/codecombat / setToSpanish

Method setToSpanish

app/models/User.js:1238–1238  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1236 isFromIndia () { return this.get('country') === 'india' }
1237 setToGerman () { return _.string.startsWith((this.get('preferredLanguage') || ''), 'de') }
1238 setToSpanish () { return _.string.startsWith((this.get('preferredLanguage') || ''), 'es') }
1239
1240 freeOnly () {
1241 return this.isStudent() || (features.freeOnly && !this.isPremium()) || (this.isAnonymous() && (this.get('country') === 'taiwan'))

Callers

nothing calls this directly

Calls 1

getMethod · 0.95

Tested by

no test coverage detected